Android, Jetpack Compose, Navigation, Type Safety, Kotlin.
NavHost(navController, startDestination = "list-of-books") { composable(route = "list-of-books") { ListOfBooksScreen( modifier = modifier, onBookClick = { navController.navigate("book-detail/${it.id}") }, ) } composable( route = "book-detail/{bookId}", arguments = listOf( navArgument("bookId") {