-
-
Notifications
You must be signed in to change notification settings - Fork 461
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
🐛 Fix disposed provider throwing error when fetching assets #493
Conversation
@override | ||
void notifyListeners() { | ||
if (_mounted) { | ||
super.notifyListeners(); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part is actually optional since it is not needed to fix #492 issue.
However, notifyListeners()
will throw an exception if the provider was disposed, so i thought it was still good to put a flag on it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I there anything needed to merge this PR ? (my commits were not verified but it should now be fine in my next commits) |
Nope. Just forgot to press the button. :) |
Fix #492