Visitar URL original
Add rememberNavKey helper by M1n9yu23 · Pull Request #344 · android/nav3-recipes · GitHub
Skip to content

Add rememberNavKey helper - #344

Merged
claraf3 merged 1 commit into
android:mainfrom
M1n9yu23:rememberNavKey
Oct 20, 2026
Merged

claraf3 merged 1 commit into
android:mainfrom
M1n9yu23:rememberNavKey

Conversation

@M1n9yu23

Copy link
Copy Markdown
Contributor

Fixes #323

  • Add a rememberNavKey helper that remembers a NavKey across config changes and process death.
  • Use it in the multiple back stacks and responsive navigation scene decorator recipes.

Checked that the selected tab is restored after process death in both recipes.

Adds a `rememberNavKey` helper that remembers a `NavKey` across config changes and process death, as a counterpart to `rememberNavBackStack`. The multiple back stacks and nav scene decorator recipes now use it to keep track of the current top level route.

Fixes android#323

@claraf3 claraf3 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the PR!

@claraf3
claraf3 merged commit 8d994c9 into android:main Oct 20, 2026
9 checks passed
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.

[Recipe request] rememberNavKey helper

2 participants