Android, Jetpack Compose, Navigation, Type Safety, Kotlin.
viewModel: BookDetailViewModel = hiltViewModel(), ) { val book by viewModel.book.collectAsStateWithLifecycle() Column( modifier = modifier.fillMaxSize().padding(16.dp), verticalArrangement = Arrangement.spacedBy(8.dp), ) { Text("Id: ${book.id}") Text("Title: ${book.title}") } } “Yeah, ok. It’s