vector / com.haroldadmin.vector / VectorViewModel / setState

setState

protected fun setState(action: suspendS.() ->S):Unit

The only method through which state mutation is allowed in subclasses.

Dispatches an action the stateStore. This action shall be processed as soon as possible in the state store, but not necessarily immediately

Parameters

action - The state reducer to create a new state from the current state