강의

멘토링

커뮤니티

Inflearn Community Q&A

sjho04283070's profile image
sjho04283070

asked

[Code Factory] [Intermediate] Flutter Real Practice! State Management, Cache Management, Code Generation, GoRouter, Authentication Logic, etc. Essential Skills to Become an Intermediate!

Passing parameters to Riverpod v2 Family

Provider 사용할 때 screen에 반드시 watch를 해야하나요?

Written on

·

498

0

read만 사용해도 되는 경우도 있나요?

flutter하이브리드-앱

Answer 1

0

codefactory님의 프로필 이미지
codefactory
Instructor

안녕하세요!

영상에서 설명드리는 것과 같이 read는 일회성으로 값을 읽어올때 사용되고 watch는 지속적으로 상태의 변경을 업데이트 받아야할때 사용합니다.

결국 상태 변경에따라 build() 함수를 재실행 해주는지 안해주는지의 차이가 있습니다.

감사합니다!

sjho04283070's profile image
sjho04283070

asked

Ask a question