Does it matter which WidgetRef I use? #639
-
When programming in Flutter, sometimes it does matter which |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, it matters for "watch". If you use an ancestor's "ref" with watch, then it is that ancestor which will rebuild when the provider changes |
Beta Was this translation helpful? Give feedback.
Yes, it matters for "watch".
Consider always using the deepest "ref"
If you use an ancestor's "ref" with watch, then it is that ancestor which will rebuild when the provider changes