existing View Model
inline fun <T : Fragment, MavericksView, VM : MavericksViewModel<S>, S : MavericksState> T.existingViewModel(viewModelClass: KClass<VM> = VM::class, crossinline keyFactory: () -> String = { viewModelClass.java.name }): MavericksDelegateProvider<T, VM>
Content copied to clipboard
activityViewModel except it will throw IllegalStateException if the ViewModel doesn't already exist. Use this for screens in the middle of a flow that cannot reasonably be an entry point to the flow.