useMachine
Callable
Type parameters
- TMachine: AnyStateMachine
Parameters
machine: TMachine
rest...__namedParameters: RestParams<TMachine>
Returns { actorRef: ActorRefFrom<TMachine>; send: (event: ResolveEventType<TMachine>) => void; snapshot: Readable<SnapshotFrom<TMachine>> }
actorRef: ActorRefFrom<TMachine>
send: (event: ResolveEventType<TMachine>) => void
Parameters
event: ResolveEventType<TMachine>
Returns void
snapshot: Readable<SnapshotFrom<TMachine>>