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

Check canRetainCheck when saving RetainedStateRegistry #1276

Merged
merged 4 commits into from
Mar 12, 2024

Conversation

chrisbanes
Copy link
Contributor

This is mostly @alexvanyo's work from #1253. Unfortunately I couldn't find a way for a PR from a fork to be based on another PR from a different fork.

My changes add the relevant fixes to make sure that saved/restored back stacks (aka back stacks) work with the changes. Primarily this is so that we check both the current back stack and saved backstacks when determining whether we can retain state.

Fixes #1252

Required propagating a generic type through
NavigableCircuitContent
Copy link
Collaborator

@ZacSweers ZacSweers left a comment

Choose a reason for hiding this comment

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

Nice 👌

@ZacSweers
Copy link
Collaborator

Though looks like there's a couple CI failures still

@chrisbanes chrisbanes requested a review from ZacSweers March 12, 2024 15:21
@ZacSweers ZacSweers added this pull request to the merge queue Mar 12, 2024
Merged via the queue into slackhq:main with commit d568f87 Mar 12, 2024
5 checks passed
@ZacSweers ZacSweers deleted the cb/retained-key branch March 12, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nested RetainedStateRegistry is saved even if LocalCanRetainChecker is false
3 participants