Appearance
twine / StateConfig
Interface: StateConfig
Defined in: state-machine.ts:12
Properties
onEnter?
optionalonEnter?:StateBody
Defined in: state-machine.ts:14
Runs once when the machine enters this state (and at load for the initial state).
onExit?
optionalonExit?:StateBody
Defined in: state-machine.ts:18
Runs once as the machine leaves this state.
onTick?
optionalonTick?:StateBody
Defined in: state-machine.ts:16
Runs every dispatch while in this state (gate the dispatch call for throttling).