updateStateSync

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

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

Parameters

stateUpdate

state update to perform


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

Variant of updateStateSync 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.