Bobby Hargett
05/23/2024, 1:36 PMcomposable(route = Bills.route) {
println("prizzy vb>>")
BillsScreen()
}
composable(
route = SingleAccount.routeWithArgs,
arguments = SingleAccount.arguments,
deepLinks = SingleAccount.deepLinks
) { navBackStackEntry ->
val accountType =
navBackStackEntry.arguments?.getString(SingleAccount.accountTypeArg)
SingleAccountScreen(accountType)
}
dialog(route = Dialog.route){
println("prizzy dizzy >>")
DialogDemo()
}
So if I am on the Bills route and if I background and restore it "prizzy vb" isn't called again
If I do it on the Dialog.route "prizzy dizzy" is printed in logcat when the app is restored, causing the dialog to lose state that is remember'ed