-
Notifications
You must be signed in to change notification settings - Fork 81
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
resetRoot(saveState = true, restoreState = true)
loses saveable state
#1342
Comments
The PR linked above verifies the issue, but I'm not sure how to fix it tbh. At a high-level, we need to call @ZacSweers this might be one for you, as you wrote most of |
Any workarounds till this gets fixed like saving states in presenters? |
FYI, #1354 now contains a fix |
…ents (#1354) This PR migrates `NavigableCircuitContent` to use `SaveableStateHolder`, rather than our hand-rolled `SaveableStateRegistryBackStackRecordLocalProvider`. I don't know the history behind `SaveableStateRegistryBackStackRecordLocalProvider`, but `SaveableStateHolder` is the first party solution for this. It is used by AndroidX Navigation, so we can assume it is well tested. This PR relies on a bunch of `movableContent` fixes added in #1282 (I had to add a similar one in this PR for `CupertinoGestureNavigationDecoration`). Fixes #1342
This can be reproduced in chrisbanes/tivi:
Backstack is restored properly, but any of the
rememberSaveable
(e.g. scroll) state is lostI suppose this is expected with the current implementation, but is it possible to support this?
The text was updated successfully, but these errors were encountered: