ref.listen + execute setState within the body of listen vs just ref.watch #917
IoannisChadjiminas
started this conversation in
General
Replies: 1 comment
-
|
It depends on why you would like to call This will only update the widget if |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to ask whether is good practise to execute setState within the body of ref.listen instead of executing ref.watch. I have a case where I don't want to execute ref.watch but just ref.listen and then execute setState within it.
Regards,
John
Beta Was this translation helpful? Give feedback.
All reactions