Replies: 1 comment 2 replies
-
Ref is available in Notifier & AsyncNotifier providers by default. You don't have to pass it via the constructor. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi,
what the difference between StateNotifierProvider and NotifierProvider? I found that their document and example demo seem extacly same....
https://docs-v2.riverpod.dev/docs/providers/notifier_provider
https://docs-v2.riverpod.dev/docs/providers/state_notifier_provider
Docuemnt said
NotifierProvider
is preferred.. But the constructor fuction of NotifierProvider doesn't haveWidgetRef
which means I can't observer other provider useNotifierProvider
?I'm really consufused :(
Beta Was this translation helpful? Give feedback.
All reactions