Hi, I've just switched to acompanist navigation animation, and iam having the folowing error when I try to add the args to the
composable()
, removing the arguments makes evething works fine.
Navigation destination that matches request NavDeepLinkRequest{ uri=<android-app://androidx.navigation/character> } cannot be found in the navigation graph NavGraph(0x0) startDestination={NavGraph(0x78da56c6) route=main startDestination={Destination(0x78d845ec) route=home}}
This is the code thats braking
composable(
route = MainRoutes.CharacterDetail.routeName,
arguments = MainRoutes.CharacterDetail.navArgs, /*Comenting this line get things working again*/
enterTransition = {initial, target -> null },
exitTransition = {initial, target -> null },
popEnterTransition = {initial, target -> null },
popExitTransition = {initial, target -> null }
) { backStackEntry ->
val character = MainRoutes.CharacterDetail.getNavArgs(backStackEntry)
character?.let {
CharacterScreen(
character = character,
onBack = { navController.popBackStack() })
}
}