StateMachine.resolveState() method​
Resolves the given state
to a new State
instance relative to this machine.
This ensures that .nextEvents
represent the correct values.
Signature:
resolveState(state: State<TContext, TEvent, TActor, TTag, TResolvedTypesMeta>): MachineSnapshot<TContext, TEvent, TActor, TTag, TOutput, TResolvedTypesMeta>;
Parameters​
Parameter | Type | Description |
---|---|---|
state | State<TContext, TEvent, TActor, TTag, TResolvedTypesMeta> | The state to resolve |
Returns:
MachineSnapshot<TContext, TEvent, TActor, TTag, TOutput, TResolvedTypesMeta>