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

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

Determines the next state given the current state and event. Calculates a microstep.

Parameters

optional
state: State<TContext, TEvent, TResolvedTypesMeta> = [UNSUPPORTED]

The current state

event: TEvent

The received event

optional
actorCtx: AnyActorContext | undefined

Returns

Array<State<TContext, TEvent, TResolvedTypesMeta>>