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
It might be useful for testing sometimes, like you cannot test if you just spawn RefreshUsecase() in a code.
But you can do it if you registered a factory getIt.registerFactory<RefreshUsecase>(() => MockRefreshUsecase()); and get it through getIt<RefreshUsecase>()
I don't think that's quite in the scope of what Riverpod tries to do.
It's a caching package. It feels odd to have a feature where the whole point is to not do caching.
Seems like there's currently no possibility to make a provider which returns a new instance every time I access it.
I can do it in get_it:
How about adding it to
provider
?It either could be a new FactoryProvider, or a
factory: true
property to the existing Provider widget.The text was updated successfully, but these errors were encountered: