You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm using the version 3 from the dev branch
I want to create a mixin that works on provider and family provider. Which is possible with NotifierBase.
Now I want to create a widget that works with that mixin, I tried with NotifierProvider but it doesn't work.
On the other hand, if I use $Notifier as the mixin, and $NotifierProvider it works perfectly, but those classes will be not used like this as the docs said:
An implementation detail of `riverpod_generator`. Do not use.`
Working version with $Notifier and $NotifierProvider
MiniSuperDev
changed the title
[riverpod 3] NotifierProvider doesn't work with a BaseNotifier mixin.
[riverpod 3] NotifierProvider doesn't work with a NotifierBase mixin.
May 14, 2024
Hello, I'm using the version 3 from the dev branch
I want to create a mixin that works on provider and family provider. Which is possible with
NotifierBase
.Now I want to create a widget that works with that mixin, I tried with
NotifierProvider
but it doesn't work.On the other hand, if I use
$Notifier
as the mixin, and$NotifierProvider
it works perfectly, but those classes will be not used like this as the docs said:Working version with $Notifier and $NotifierProvider
Not working version with NotifierBase and NotifierProvider
The idea would be that the
NotifierProvider
works with theNotifierBase
so as not to use$Notifier
with$NotifierProvider
Thanks.
The text was updated successfully, but these errors were encountered: