Skip to content

twine / StateConfig

Interface: StateConfig

Defined in: state-machine.ts:12

Properties

onEnter?

optional onEnter?: StateBody

Defined in: state-machine.ts:14

Runs once when the machine enters this state (and at load for the initial state).


onExit?

optional onExit?: StateBody

Defined in: state-machine.ts:18

Runs once as the machine leaves this state.


onTick?

optional onTick?: StateBody

Defined in: state-machine.ts:16

Runs every dispatch while in this state (gate the dispatch call for throttling).

Released under the MIT License · Credits