Skip to content
Version: xstate@5.0.0

ActorContext interface​

Signature:

export interface ActorContext<TSnapshot extends Snapshot<unknown>, TEvent extends EventObject, TSystem extends ActorSystem<any> = ActorSystem<any>> 

Properties​

PropertyModifiersTypeDescription
defer(fn: () => void) => void
idstring
logger(...args: any[]) => void
selfActorRef<TEvent, TSnapshot>
sessionIdstring
stopChild(child: AnyActorRef) => void
systemTSystem