Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/xstate/src/StateMachine.ts>StateMachine#resolveState

State machines and statecharts for the modern web.
Go to Latest
method StateMachine.prototype.resolveState
import { StateMachine } from "https://deno.land/x/xstate@xstate%405.0.0-beta.19/src/StateMachine.ts";

Resolves the given state to a new State instance relative to this machine.

This ensures that .nextEvents represent the correct values.

Parameters

state: State<TContext, TEvent, TResolvedTypesMeta>

The state to resolve

Returns

state