harry248
05/14/2021, 6:29 PMAttempt to invoke virtual method 'androidx.navigation.NavDestination$DeepLinkMatch androidx.navigation.NavGraph.matchDeepLink(androidx.navigation.NavDeepLinkRequest)' on a null object reference"
exception. Anyone experiencing the same issue?Ian Lake
05/14/2021, 6:56 PMnavigate()
as part of compositionharry248
05/15/2021, 2:44 PMIan Lake
05/15/2021, 3:31 PMIan Lake
05/15/2021, 3:32 PMdeepLinks
parameter on composable
harry248
05/16/2021, 7:12 AMIan Lake
05/16/2021, 2:05 PMharry248
05/17/2021, 6:41 AMIan Lake
05/17/2021, 1:49 PMcollectAsState()
is the wrong approach. You'd instead want a LaunchedEffect
that calls collect
on the Flow.Farid Mrz
11/06/2021, 7:48 AMLaunchedEffect(navigationManager.commands){
navigationManager.commands.collect{ command ->
if (command.destination.isNotEmpty()) {
navController.navigate(command.destination)
}
}
}