knthmn
02/25/2021, 4:16 AMNavHost()
already provides ViewModelStoreOwner
, LifecycleOwner
, and SavedStateRegistryOwner
locals. Is there a function like scopeViewModels(savedState: Bundle? = null, content @Composable () -> Unit)
that I can use that also scopes all the view models inside content and automatically clear them like NavHost()
does? I want to use it for dialogs which does not make much sense with NavHost()
Ian Lake
02/25/2021, 4:33 AMIan Lake
02/25/2021, 4:33 AM