mvrx-mocking / com.airbnb.mvrx.mocking / MockableMavericks / setScriptableState

setScriptableState

fun <VM : MavericksViewModel<S>, S : MavericksState> setScriptableState(viewModel: VM, state: S): Unit

If the given viewmodel has a state store that implements ScriptableStateStore then this function can be used to set the next state via ScriptableStateStore.next.

It is an error to call this if the store is not scriptable.