Hinaka
04/10/2025, 4:18 PMAnimatedPane
, the LaunchedEffect(Unit)
inside my list pane gets triggered again when navigating back from the details pane. However, if I include the panes without using AnimatedPane
, the effect only triggers once on the initial launch. Is this expected behavior when using AnimatedPane
?marlonlom
04/10/2025, 4:28 PMHinaka
04/10/2025, 4:39 PMLaunchedEffect(Unit)
?marlonlom
04/10/2025, 5:54 PMHinaka
04/11/2025, 1:06 AMLaunchedEffect(Unit)
to trigger certain events only once when the screen appears—like logging the screen name. I just want to confirm my understanding: when using AnimatedPane
, this behaves similarly to navigating between separate list and detail destinations, causing the list pane to be re-entered and the effect to retrigger. Without AnimatedPane
, the effect only triggers once, likely because the scaffold adds the panes to the composition just once and doesn’t recreate them when navigating between them.