-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
Describe the bug
This is related to #2286 and #2315, with some more test cases
Steps To Reproduce
Sample: Test.zip
The sample is based on the one provided by #2286
There are three cases (all can be found inside ItemViewModel):
NavigateBackinsideSubscribevar completedInternally = Observable.Amb( Confirm.Select(_ => _), Cancel.Select(_ => _), Delete.Select(_ => _)); completedInternally.Subscribe(_ => { if (HostScreen.Router.NavigationStack.LastOrDefault() == this) { HostScreen.Router.NavigateBack.Execute().Subscribe(); if (NextViewModel != null) HostScreen.Router.Navigate.Execute(NextViewModel).Subscribe(); } });
NavigateBackinsideSelectManyvar completedInternally = Observable.Amb( Confirm.Select(_ => _), Cancel.Select(_ => _), Delete.Select(_ => _)) .Where(_ => HostScreen.Router.NavigationStack.LastOrDefault() == this) .SelectMany(_ => HostScreen.Router.NavigateBack.Execute()); completedInternally.Subscribe(_ => { if (NextViewModel != null) HostScreen.Router.Navigate.Execute(NextViewModel).Subscribe(); });
NavigateBackinsideDovar completedInternally = Observable.Amb( Confirm.Select(_ => _), Cancel.Select(_ => _), Delete.Select(_ => _)) .Where(_ => HostScreen.Router.NavigationStack.LastOrDefault() == this) .Do(_ => HostScreen.Router.NavigateBack.Execute().Subscribe()); completedInternally.Subscribe(_ => { if (NextViewModel != null) HostScreen.Router.Navigate.Execute(NextViewModel).Subscribe(); });
| Case | RxUI 11.1.11 | RxUI 11.1.6 |
|---|---|---|
| 1 | ✔ | ❌ |
| 2 | ❌ | ❌ |
| 3 | ✔ | ❌ |
Expected behavior
It should return to the Main Page when Save is tapped on the Production page.
Environment
- OS: Android 7-API 24, physical device
- Version 11.1.11 and 11.1.6
- Device: Samsung S6
Additional context
I'm quite new to ReactiveUI (using this for my uni's final year project), so it might the case that I am using it all wrong.
Thanks!