I’m a bit lost with navigation in compose, I based...
# compose
k
I’m a bit lost with navigation in compose, I based my code of the Owl example but seem to have miss something. Any help would be appreciated. Code in thread
Here’s the error I get:
java.lang.IllegalArgumentException: Navigation destination that matches request NavDeepLinkRequest{ uri=<android-app://androidx.navigation.compose/favorite_selection/15> } cannot be found in the navigation graph NavGraph(0x0) startDestination={Destination(0x900fda2)}
Here’s the relevant nav graph definition:
v
you need to do something like this from
MAIN_SCREEN
composable :
navController.navigate(routeOfNextScreen/arg)
to navigate to your
NEXT_SCREEN
, where are you doing that ? the code seems fine
k
yep I am passing a lambda around to do that:
j
I think you are missing the brackets in the route
v
oh in your second composable in 1 photo, in your
route
you are doing this :
"ROUTE/{id}"
enclosing brackets are missing in
id
I was telling that too thanks @Jorkoh XD
k
aaah yeah indeed, good catch guys, thanks a lot!