Hi guys, i'm currently using this type-safe naviga...
# compose
h
Hi guys, i'm currently using this type-safe navigation
Copy code
NavHost(navController = navHost, startDestination = Home) {

    composable<Home> {
        Home(navHost)
    }
    composable<Detail> { it ->
        val title: Detail = it.toRoute()
        Detail(title, navHost)
    }
}
My business want me to create a structure that I don't need to define any composable first inside NavHost, so there are any ways to customize NavGraphBuilder that help me to define composable inside NavHost whenever I use navHost.navigate(Detail()) ?
s
No, you need to have defined all destinations in order to be able to navigate to them in the first place
h
okay thanks