Skip to content
Version: xstate@5.0.0

ActorOptions interface​

Signature:

export interface ActorOptions<TLogic extends AnyActorLogic> 

Properties​

PropertyModifiersTypeDescription
clock?Clock(Optional)
devTools?boolean | DevToolsAdapter

(Optional) If true, states and events will be logged to Redux DevTools.

Default: false

execute?boolean(Optional) Whether state actions should be executed immediately upon transition. Defaults to true.
id?string(Optional) The custom id for referencing this service.
input?InputFrom<TLogic>(Optional) The input data to pass to the actor.
inspect?Observer<InspectionEvent> | ((inspectionEvent: InspectionEvent) => void)(Optional)
logger?(...args: any[]) => void(Optional)
parent?ActorRef<any, any>(Optional)
src?string(Optional) The source definition.
state?any(Optional)
sync?boolean(Optional)
systemId?string(Optional) The system ID to register this actor under