You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we're inside a Fragment, ComposeView gets destroyed when we're put to back stack and re-created when popped back. Under these circumstances remember() forgets everything but rememberSaveable() still works.
It might be better to find a new way to initialize the route graph, currently PreCompose still want to reset the route graph when builder or initial Route changed.
If we're inside a Fragment,
ComposeView
gets destroyed when we're put to back stack and re-created when popped back. Under these circumstancesremember()
forgets everything butrememberSaveable()
still works.PreCompose/precompose/src/commonMain/kotlin/moe/tlaster/precompose/navigation/NavHost.kt
Lines 95 to 97 in 32bf75f
LaunchedEffect()
relies onremember()
. Thus, navigation gets restarted, and evenrememberSaveable()
are useless inside destinations.The text was updated successfully, but these errors were encountered: