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

feature: Navigate to a page then remove previous one from stack #63

Open
BoutemineOualid opened this issue Dec 12, 2018 · 1 comment
Open

Comments

@BoutemineOualid
Copy link

Feature Request
I would like to achieve the following behavior:
Once I navigate to a page, I would like to remove the previous page from the stack. Something like

			this
				.HostScreen
				.Router
				.NavigateAndRemovePrevious
				.Execute(targetViewModel)
				.Subscribe()
				.DisposeWith(Subscriptions);

What is the current behavior?

I tried mimicking this behavior by manually removing the previous entry from the Router's NavigationStack but that resulted in an animated back navigation then forward navigation to my target vm.

@glennawatson
Copy link
Contributor

Hi there.

We are revamping the stack navigation in the future so might be worth adding this to our rfc here reactiveui/rfcs#20

@BoutemineOualid BoutemineOualid changed the title [Xamarin Forms] Navigate to page then remove previous one from stack [Xamarin Forms] Navigate to a page then remove previous one from stack Dec 25, 2018
@glennawatson glennawatson transferred this issue from reactiveui/ReactiveUI May 21, 2019
@RLittlesII RLittlesII changed the title [Xamarin Forms] Navigate to a page then remove previous one from stack feature: Navigate to a page then remove previous one from stack Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants