'Navigation, Clear back stack when app stops
I am using jetpack compose inside fragments flow, here the nav host
compose_view.apply {
setViewCompositionStrategy(ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed)
setContent {
EggNavigation()
}
}
fun EggNavigation() {
val navController = rememberNavController()
NavHost(
navController = navController,
startDestination = EggScreenExotic.MainScreen.route
) {}
}
the navigation is something like this activity > fragment > compose egg list > egg details > open anther app >go to egg app > press back > activity is showing but activity >
but ...fragment > compose egg list > egg details > pressing back > egg list
why compose navigation is stop working
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
