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#getPreInitialState

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

The initial state before evaluating any microsteps. This "pre-initial" state is provided to initial actions executed in the initial state.

Parameters

actorCtx: AnyActorContext | undefined
input: any

Returns

State<TContext, TEvent, TResolvedTypesMeta>