updateStateAsync

open fun updateStateAsync(stateUpdate: StateContainer.StateUpdate, attribution: String)

Notify the Component Tree that it needs to asynchronously perform a state update.

Parameters

stateUpdate

state update to perform


fun updateStateAsync(stateUpdate: StateContainer.StateUpdate, attribution: String, reference: Class<out Component>)

Variant of updateStateAsync that asserts the update is performed with the ComponentContext of reference — the component that owns the state. Generated by the Spec annotation processor for @OnUpdateState methods; see assertValidStateUpdateContext.