Skip to main content
Module

x/xstate/src/getNextSnapshot.ts>getInitialSnapshot

Actor-based state management & orchestration for complex app logic.
Go to Latest
function getInitialSnapshot
import { getInitialSnapshot } from "https://deno.land/x/xstate@xstate@5.12.0/src/getNextSnapshot.ts";

Type Parameters

T extends AnyActorLogic

Parameters

actorLogic: T
...unnamed 1: undefined extends InputFrom<T> ? [InputFrom<T>] : [InputFrom<T>]

Returns

SnapshotFrom<T>