Android, Jetpack Compose, Navigation, Type Safety, Kotlin.
put(bundle: Bundle, key: String, value: T) = bundle.putParcelable(key, value) } Now, we just have to use it in the navigation component: composable<BookDetail>( typeMap = mapOf(typeOf<Book>() to parcelableType<Book>()) ) { ... Retrieve data in the ViewModel But, what if I wanted to get the selected