Skip to content
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 missing context bug in VaultLoader listener #6

Merged

Conversation

luckyrat
Copy link
Member

Is a specific instance of a more general fault where context could be
lost during async operations. This case was noticed because the recently
added code to store and flush data to shared storage takes long enough
that Flutter has an increased chance to destroy the old context and this
actually happened on some devices. I've investigated other instances
of this problem and either developed a more defensive algorithm or
commented when it is uncertain whether the problem is applicable or not.

Is a specific instance of a more general fault where context could be
lost during async operations. This case was noticed because the recently
added code to store and flush data to shared storage takes long enough
that Flutter has an increased chance to destroy the old context and this
actually happened on some devices. I've investigated other instances
of this problem and either developed a more defensive algorithm or
commented when it is uncertain whether the problem is applicable or not.
@luckyrat luckyrat merged commit 174cf4e into master Apr 11, 2022
@luckyrat luckyrat deleted the fix/missing-context-after-ui-delay-or-bloc-listener branch February 9, 2023 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant