-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix: NavigateBack wrong values on the NavigationStack #2331
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2331 +/- ##
=======================================
Coverage 54.73% 54.73%
=======================================
Files 113 113
Lines 4334 4334
Branches 660 660
=======================================
Hits 2372 2372
Misses 1797 1797
Partials 165 165Continue to review full report at Codecov.
|
|
@RLittlesII Is your original fix of adding I am not sure what is the default value for |
|
@garyng I am not sure if its required. I honestly thought my original fix resolved it. Default for That was my thought that the notifications were not returning to the UI thread thus causing the issue. |
|
Ohh okay! I asked because I bumped into the issue where all the page-poppings are executed on other non-ui thread - it weirdly swallowed all the exceptions. |
|
Well. The code changed in the PR works with the previous scenario we were testing. So you're thinking the Popped notifications should happen on the MainThreadScheduler? |
|
I mean this chunk of code: ReactiveUI/src/ReactiveUI.XamForms/RoutedViewHost.cs Lines 85 to 97 in 877ddce
Should be executed on the main ui thread right? Since all the Pop*Asyncs are all ui operations.
|
|
Yes. Those are the Xamarin.Forms navigation methods. |
What kind of change does this PR introduce?
@garyng provided a solution for fixing the
RoutedViewHostXamarin.Forms implementation.What is the current behavior?
fixes: #2317
What is the new behavior?
The stack values do not get distorted after the navigation pattern provided.
What might this PR break?
Xamarin.Forms navigation
Please check if the PR fulfills these requirements
Other information:
I tested this in a sample and saw that the
NavigationStackseems to be correct. I am going to look into creating some unit tests for this behavior so we can make sure it continues to function as expected.