Vitaliy Zarubin
05/30/2021, 12:30 PMShakil Karim
05/30/2021, 1:50 PMjossiwolf
05/30/2021, 2:06 PMapply
block will get called in every composition which you don't want. Use a DisposableEffect
with the NavController
as key
like in Chris' exampleIan Lake
06/01/2021, 6:55 PMcurrentBackStackEntryFlow
in Navigation 2.4.0-alpha01 and collecting on that in a `LaunchedEffect`: https://developer.android.com/reference/androidx/navigation/NavController#currentBackStackEntryFlow()