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
Generated providers should only depend on other generated providers. Failing to do so may break rules such as "provider_dependencies".
To solve this I tried to use @riverpod generator but I couldn't update the value
I know I think I can use class based generator approach but I have more providers like this which I dont want to convert to clases what is the solution here?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have the following provider
final completeProfileImageProvider = StateProvider.autoDispose<File?>((ref) { return null; });
and update its value like
ref.read(completeProfileImageProvider.notifier).state = file;
now I get warning
To solve this I tried to use @riverpod generator but I couldn't update the value
I know I think I can use class based generator approach but I have more providers like this which I dont want to convert to clases what is the solution here?
Beta Was this translation helpful? Give feedback.
All reactions