Vinícius Santos
09/15/2021, 2:39 PMcomposable()
, 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() })
}
}
Ian Lake
09/15/2021, 2:53 PMMainRoutes.CharacterDetail.routeName
equal character
, because that's what you're trying to navigate toVinícius Santos
09/15/2021, 2:54 PM"character"
.Vinícius Santos
09/15/2021, 2:55 PMIan Lake
09/15/2021, 2:57 PMIan Lake
09/15/2021, 3:02 PM"character/{characterId}"
and have your destination correctly read that ID and retrieve the Character
from your repositoryVinícius Santos
09/15/2021, 5:10 PM