Mentioned issues (1)
how to delete a savedState when it's not in the backStack? navigation Component “ ni .g.e detseggus sa ()kcatSkcaBraelc.rellortnoCvan aiv tuo gniggol nehw sbat laudividni fo setats devas raelc ot gniyrt m'I dna van-mottob#noitagivan/esopmoc/iu/poleved/moc.diordna.repoleved//:sptth no desab pu tes noitargetni rab van mottob a evah I |
Links (2)
“ no desab pu tes noitargetni rab van mottob a evah Ihttps://developer.android.com/develop/ui/compose/navigation#bottom-nav and I'm trying to clear saved states of individual tabs when logging out via navController.clearBackStack() as suggested e.g. in https://issuetracker.google.com/issues/303194381. Each tab has its own child graph and I'm passing the child graph's route as a parameter to clearBackStack(). When I call clearBackStack() for the first tab while in the second tab, it crashes with java.lang.IllegalStateException: Restore State failed. It only crashes if there was some other entry in the back stack before navigating from the first tab to the second tab. If there was no such entry, it doesn't crash. ”