What are the new Notifier advantages #3845
Unanswered
YukiAttano
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some questions:
Currently this is my understanding:
if dependencies of a StateNotifierProvider had changed, the Notifier was rebuild and lost its current state.
The new Notifier prevents this with his build() method, being able to react to that change and do not loose the current state.
If this is correct (and i don't think this could be) than the main problem is, that the build() method can't access 'state' as it has no state in the first run (and therefor can't depend on it at any time later) ultimately always returning a 'new initial state'.
returning to my question.
Beta Was this translation helpful? Give feedback.
All reactions