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

Navigator - Change popRoot to keep the top screen as the root screen #1283

Merged
merged 2 commits into from
Mar 13, 2024

Conversation

stagg
Copy link
Collaborator

@stagg stagg commented Mar 13, 2024

Modifying this as the full popUntil style would result in the root of the backstack being shown.
Changing to "move" the top screen to the root and then pop.

@stagg stagg marked this pull request as ready for review March 13, 2024 20:34
@stagg stagg requested review from ZacSweers and kierse March 13, 2024 20:35
backStackSize--
pop()
Snapshot.withMutableSnapshot {
// Move the top screen to be the root screen for any final animation.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you flesh this out with a little more detail (similar to what you put in the PR description) for posterity?

@stagg stagg added this pull request to the merge queue Mar 13, 2024
Merged via the queue into main with commit d225a0f Mar 13, 2024
5 checks passed
@stagg stagg deleted the js-poproot-withtopscreen branch March 13, 2024 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants