Skip to content
Version: xstate@5.0.0

StateNode.(constructor)​

Constructs a new instance of the StateNode class

Signature:

constructor(
config: StateNodeConfig<TContext, TEvent, TODO, // actions
TODO, // actors
TODO, // output
TODO, // guards
TODO, // delays
TODO>, options: StateNodeOptions<TContext, TEvent>);

Parameters​

ParameterTypeDescription
configStateNodeConfig<TContext, TEvent, TODO, // actions TODO, // actors TODO, // output TODO, // guards TODO, // delays TODO>
optionsStateNodeOptions<TContext, TEvent>