https://kotlinlang.org logo
#compose
Title
# compose
m

Michał Diner

02/23/2023, 6:18 PM
I started getting
The current destination is null
on navController’s getBackStackEntry on app start, when navHost navigates to an inner navGraph.
Copy code
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?
s

Stylianos Gakis

02/24/2023, 7:14 AM
Can you reproduce this locally?
72 Views