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

[BUG] navigationService.PopPage does not trigger WhenNavigatedTo #190

Closed
thor089 opened this issue Jan 3, 2020 · 5 comments · Fixed by #192
Closed

[BUG] navigationService.PopPage does not trigger WhenNavigatedTo #190

thor089 opened this issue Jan 3, 2020 · 5 comments · Fixed by #192
Labels
bug Something isn't working outdated

Comments

@thor089
Copy link

thor089 commented Jan 3, 2020

Describe the bug
When navigating to a view model with

var navigationService = Locator.Current.GetService<IParameterViewStackService>(); return navigationService .PushPage(new TimeTrackingDetailPageViewModel(), new NavigationParameter { { "parameter", "test" } });

WhenNavigatedTo is triggered and you can read the parameter.

navigationService .PopPage(new NavigationParameter { { "parameter", "back" } });

Does not trigger WhenNavigatedTo and you are not able to retrieve the parameter

Steps To Reproduce

  1. Take the "Navigation.Parameters" sample - https://github.com/reactiveui/ReactiveUI.Samples/tree/master/xamarin-forms/Navigation.Parameters

  2. Extend the ReceivedViewModel to have a command which calls the "PopPage(...)"

  3. Override WhenNavigatingTo in PassViewModel

Expected behavior
WhenNavigatingTo should always be called when navigating to a view model

Environment

  • OS: Android: Emulator (Oreo); iOS Simulator iPhone 11 - 13.3
@thor089 thor089 added the bug Something isn't working label Jan 3, 2020
@open-collective-bot
Copy link

open-collective-bot bot commented Jan 3, 2020

Hey @thor089 👋,

Thank you for opening an issue. We will get back to you as soon as we can. Also, check out our Open Collective and consider contributing financially.

https://opencollective.com/reactiveui

PS.: We offer priority support for all financial contributors. Don't forget to add priority label once you start contributing 😄

An advanced, composable, functional reactive model-view-viewmodel framework for all .NET platforms!

@RLittlesII
Copy link
Member

@thor089 Thanks for reporting this. I will probably work a fix in this weekend.

@thor089
Copy link
Author

thor089 commented Jan 4, 2020

Priority
@RLittlesII that would be gorgeous. If you need someone to test - just let me know.

@thor089
Copy link
Author

thor089 commented Jan 5, 2020

@RLittlesII: Thank you very much!
I verified it with iOS and Android and it is working now.
Looking forward to the next release.

@RLittlesII
Copy link
Member

Once it gets merged in there should be a release early next week.

@lock lock bot added the outdated label Apr 15, 2020
@lock lock bot locked and limited conversation to collaborators Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working outdated
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants