Michał Diner
02/23/2023, 6:18 PMThe current destination is null
on navController’s getBackStackEntry on app start, when navHost navigates to an inner navGraph.
1. NavHost(
navController = navController,
startDestination = innerDestination.graphRoute
)
2.
navigation(
startDestination = innerDestination.route,
route = innerDestination.graphRoute
)
3.
val innerGraphBackStack = remember(innerDestination backStack) { navController.getBackStackEntry(innerDestination.graphRoute) }
It already crashed on 155 devices and raising. What can be the reason?Stylianos Gakis
02/24/2023, 7:14 AM