Skip to main content
The Deno 2 Release Candidate is here
Learn more
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%405.0.0-beta.19/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
initEvent: any

Returns

State<TContext, TEvent, TResolvedTypesMeta>