Billy Newman
06/10/2022, 8:50 PMnavigation destination home?foo=bar is not a direct child of this NavGraph
Code in replyBilly Newman
06/10/2022, 8:50 PMNavHost(
navController = navController,
startDestination = "home"
) {
composable(
route = "home?foo={bar}",
arguments = listOf(navArgument("foo") { defaultValue = ""; })
) { backstackEntry ->
versions:
navigation-compose:2.4.2
compose-version:1.2.0-beta03
Billy Newman
06/10/2022, 8:51 PMBilly Newman
06/10/2022, 8:54 PMIan Lake
06/10/2022, 9:04 PMBilly Newman
06/10/2022, 9:11 PMBilly Newman
06/10/2022, 9:41 PMIan Lake
06/10/2022, 9:57 PMIan Lake
06/10/2022, 9:58 PMhome
because your route for your screen should be home
- arguments shouldn't be a part of it at allIan Lake
06/10/2022, 10:03 PMBilly Newman
06/10/2022, 10:49 PM