Skip to content
Version: xstate@5.0.0

InvokeDefinition.onError property​

The transition to take upon the invoked child machine sending an error event.

Signature:

onError?: string | SingleOrArray<TransitionConfig<TContext, ErrorActorEvent, TEvent, TActor, TAction, TGuard, TDelay>>;