Good day, I wanted to ask on type safe navigation ...
# compose
u
Good day, I wanted to ask on type safe navigation where route is a string. Specially using navigation function in extension NavGraphBuilder
s
What is the question?
😅 1
u
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 ... )