-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Bug/486 nested navigation leads to crash #490
Bug/486 nested navigation leads to crash #490
Conversation
Codecov Report
@@ Coverage Diff @@
## master #490 +/- ##
==========================================
+ Coverage 96.71% 96.74% +0.03%
==========================================
Files 13 13
Lines 853 861 +8
==========================================
+ Hits 825 833 +8
Misses 28 28
Continue to review full report at Codecov.
|
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 looks alright, although all of this nested navigation is a bit of a mess 🙂
Would it be possible for you to also add a test for this, but without using flutter_bloc like in #486?
Hi @slovnicki! I just added the test ;). If executed with the current master branch, it crashes, while it does not with the applied changes. I am still not satisfied, that the _context is being cached within the beamer delegate, but this is another story ;) |
@svsk417 Thanks! I agree that playing with context like that is ugly and I'm open to change that. Let me tell you a short backstory how this came to be (recently). We want to allow async guarding, but guards want context to execute their Also, maybe we could get context differently. I'm not sure why I didn't check for existence of |
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.
Thanks for the PR! 💙
Fixes #486
This cuts the dependencies of a child Beamer to its parent, if it is removed from the widget tree.