reactiveViewModel

inline fun <VM : CoroutineLauncher> reactiveViewModel(key: String? = null, crossinline onError: (Throwable) -> Unit, crossinline provider: ReactiveStateContext.() -> VM): VM

Creates a multiplatform ViewModel. The provider should instantiate the object directly.

You have to pass loading and error effect handlers, so the most basic functionality is taken care of.