Android, Jetpack Compose, Navigation, Type Safety, Kotlin.
book directly in the ViewModel? No worries, there is an extension method to get the nav args from SavedStateHandle. I’m going to omit the whole Hilt set up but feel free to check the commit which adds it to our repository. So this is the resulting ViewModel. Notice we can use the toRoute method to