Skip to content
Version: xstate@5.0.0

InvokeDefinition.onDone property​

The transition to take upon the invoked child machine reaching its final top-level state.

Signature:

onDone?: string | SingleOrArray<TransitionConfig<TContext, DoneActorEvent<unknown>, TEvent, TActor, TAction, TGuard, TDelay>>;