Skip to content

StoreChange

Defined in: store-machine.ts:57

StoreChange describes a change event in a StoreMachine. Includes the event type, parameters, previous value, and next value.

Type ParameterDescription
TValue type
PropertyTypeDescription
typestringThe event type string
paramsany[]Parameters passed to the event
fromTPrevious value
toTNext value Usage: { type: "increment", params: [2], from: 1, to: 3 }