Replies: 2 comments
-
State.didChangeDependencies is not supported |
Beta Was this translation helpful? Give feedback.
0 replies
-
@rrousselGit It looks messy when we watch the state variables inside the build method, especially using select. |
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
-
Hello!
Do riverpod ignore didChangeDependencies functionality?
I am trying to implement some logic in didChangeDependencies, but... its only called once after initState, instead of every time after provider notifies their listeners for changes. Strange things, but calling ref.watch in didChangeDependencies method successfully subscribe for provider updates, so build method called every time as expected
I am created a example project with riverpod and provider based implementations of a same logic:
https://github.com/urusai88/provider_state
main.dart contains code for changing mode between provider and riverpod
Can somebody explain me please whats i am doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions