Radoslaw Juszczyk
02/15/2024, 7:00 PMComposeView which contains a NavHost with a NavController inside. Is it normal that the `NavController`s viewModelStore s are not cleared when that ComposeView is removed from the layout hierarchy?
I am doing that as a workaround:
navController.currentBackStack.value.forEach {
it.viewModelStore.clear()
}
but we are not supposed to access the currentBackStack from the outside of the library with groupid = androidx.navigation
is there a better way to tackle that?Ian Lake
02/15/2024, 10:28 PMsaveState ala bottom navs) - that's why that's the wrong API to use, even if it was publicIan Lake
02/15/2024, 10:29 PMIan Lake
02/15/2024, 10:30 PM