Good day, I wanted to ask on type safe navigation where route is a string. Specially using navigation function in extension NavGraphBuilder
s
Stylianos Gakis
09/28/2024, 8:02 AM
What is the question?
😅 1
u
Ume Channel
10/01/2024, 12:28 PM
Well, like if you use NavHostController if you want to navigate in type safe navigation in composable destination is like this
Copy code
navController.navigate(Profile(id = "user1234"))
now if you want to navigate into route not a composable destination,
Should I use string?
NavHost(
route = ... // String -- can i use type safe here or string
destination = ... // type safe
...
)