-
-
Notifications
You must be signed in to change notification settings - Fork 956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The provider is destroyed when autodispose is not used #2844
Comments
|
When I use ref.read(mainTabIndexProvider), I can get the PageController, but wait a long time. ref.read(mainTabIndexProvider) gets a destroy error |
What's a "destroy error"? Could you share a minimal reproducible sample? If the application sleeps for a long time, it might've been killed by the OS itself. In which case this isn't about Riverpod |
sorry my poor english,i means i gets an error that the notifier was disposed,It happens mostly on Android. |
What error? :) |
In the lack of a reproducible example and clear description of the issue, I'm unable to do anything here. So I'll close this. Please reopen a new issue if you still have the problem |
My application uses the StateNotifierProvider to save login user information and watch it somewhere, but the notifier sometimes gets destroyed when the application sleeps for a long time
The text was updated successfully, but these errors were encountered: