Android, Jetpack Compose, Navigation, Type Safety, Kotlin.
composable<BookDetail> { backStackEntry -> val bookDetail = backStackEntry.toRoute<BookDetail>() BookDetailScreen( modifier = modifier, bookId = bookDetail.book, ) } Previously we were using just the id, but now that we already have the selected book, let’s change BookDetailScreen: @Composable fun