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

REPLACE_ROOT presentation - popUpTo to controller.graph.id (inclusive) #296

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

reaper
Copy link
Contributor

@reaper reaper commented Nov 30, 2023

Issue

replace_root presentation may not remove all previous navigation items in the back stack.

Inclusive popUpTo pops every navigation items until it finds the given one, leaving previous navigation items stacked before it, depending of the previous navigation flow.

Resolution

Popping up to the graph id ensures the back stack is fully cleared.

@jayohms
Copy link
Collaborator

jayohms commented Feb 23, 2024

Good find @reaper, thanks!

@jayohms jayohms merged commit 8556f9d into hotwired:main Feb 23, 2024
@jayohms jayohms mentioned this pull request Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants