Josh Eldridge
02/05/2024, 12:03 AMkoinViewModel
's SavedStateHandle that's scoped to it? I'm trying to figure out how to populate this long into the viewmodel. I've tried passing it to parameters
and that just results in a NoBeanDefFoundException when trying to inject it as well.
val selectedId = backStackEntry.savedStateHandle.get<Long>("selectedId")
val createBuildViewModel: CreateBuildViewModel = koinViewModel()
Josh Eldridge
02/05/2024, 12:16 AMcreateBuildViewModel.savedStateHandle["selectedId"] = selectedId
Pedro Alberto
02/05/2024, 9:16 AMarnaud.giuliani
02/14/2024, 8:57 AM