Android, Jetpack Compose, Navigation, Type Safety, Kotlin.
to try the new API: @Serializable object ListOfBooks @Serializable data class BookDetail(val id: Int) @Composable fun TypeSafetyNavigation(modifier: Modifier = Modifier) { val navController = rememberNavController() NavHost(navController, startDestination = ListOfBooks) { composable<ListOfBooks> {