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
Use LifecycleScreenEffect to subscribe to lifecycle updates in ButtonsScreenContent
Launch app and navigate to "Stack Actions"
Click "remove previous"
Expected behavior
Actual behavior
"LifecycleScreenEffect ON_DESTROY" in logcat for previous screen
No message in logcat, it happens only when perform navigation that changes UI
This happened because currently we trigger state clearance only from Compose in DisposableEffect block in Screen.BeforeScreenContent and Screen.AfterScreenContent.
This case enlighten that we should also try to do predispose and dispose when we update state of the navigation.
The text was updated successfully, but these errors were encountered:
Steps to reproduce in demo app
LifecycleScreenEffect
to subscribe to lifecycle updates inButtonsScreenContent
This happened because currently we trigger state clearance only from Compose in
DisposableEffect
block inScreen.BeforeScreenContent
andScreen.AfterScreenContent
.This case enlighten that we should also try to do predispose and dispose when we update state of the navigation.
The text was updated successfully, but these errors were encountered: