What is the difference between AsyncNotifier<Foo> and StateNotifier<AsyncValue<Foo>> #3041
-
Let me know if its not clear. Is there any difference? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
AsyncNotifier has build method which allows you to watch another provider. This means that as the provider AsyncNotifier is watching changes, AsyncNotifier reacts to that change without recstructing itself. That being said, I think it's clear that AsyncNotifier follows the definition of Riverpod better. i.e. "A Reactive Caching and Data-binding Framework" |
Beta Was this translation helpful? Give feedback.
-
Check #2831 (comment) |
Beta Was this translation helpful? Give feedback.
Check #2831 (comment)