rememberViewModelFactory
inline fun <VM : ViewModel> rememberViewModelFactory(crossinline builder: @DisallowComposableCalls CreationExtras.() -> VM): ViewModelFactory<VM>
Remember a ViewModelFactory that will be used to create a ViewModel.
See also
inline fun <VM : ViewModel> rememberViewModelFactory(key: Any?, crossinline builder: @DisallowComposableCalls CreationExtras.() -> VM): ViewModelFactory<VM>
Remember a ViewModelFactory that will be used to create a ViewModel with the given key.