-
-
Notifications
You must be signed in to change notification settings - Fork 241
remove an item from navigation history without clearing the whole history #1525
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
Comments
Hi @janossuta, |
Hi @tsonevn, Thank you! I'm going to use modal page then. |
Hi @tsonevn, Thank you it is solved my problem. But I have an other question regarding modal views. If I have multiple modal views which are not related together but from the same page I have to create a modal-root component for each new modals? Comment list page -> Add comment modal |
Hi @janossuta, In case you need to display only a specific component as a modal, you can use the approach described in the example here in the article. |
Any solution without model based approach ? |
Is there any solution to this now with all the updates since? |
Any update on this without using the modal approach yet? |
Any update here? I wish to clear only the previous item from the navigation history. |
From @janossuta on September 20, 2018 9:1
Hi,
I would like to remove an item from navigation history.
I have a route like this
Homepage -> Comment list -> Add comment
After you add a comment it navigates back to
Comment list
So the navigation history is this:
Homepage -> Comment list -> Add comment -> Comment list
What I want is to prevent navigation back from
Comment list
toAdd comment
when pressing the back button and jump toHomepage
insteadComment list -> (back button) skip Add comment -> Homepage
Here is a simple example:
https://play.nativescript.org/?template=play-ng&id=zhyj9e
Which platform(s) does your issue occur on?
Both
Copied from original issue: NativeScript/NativeScript#6285
The text was updated successfully, but these errors were encountered: