Appearance
twine / StateConfig
Interface: StateConfig โ
Defined in: twine/src/state-machine.ts:13
One state's hooks, all optional.
Properties โ
onEnter? โ
optionalonEnter?:StateBody
Defined in: twine/src/state-machine.ts:15
Runs once when the machine enters this state (and at load for the initial state).
onExit? โ
optionalonExit?:StateBody
Defined in: twine/src/state-machine.ts:19
Runs once as the machine leaves this state.
onTick? โ
optionalonTick?:StateBody
Defined in: twine/src/state-machine.ts:17
Runs every dispatch while in this state (gate the dispatch call for throttling).