useActor
Callable
Type parameters
- TLogic: AnyActorLogic
Parameters
actorLogic: TLogic
options: ActorOptions<TLogic>
Returns { actorRef: ActorRefFrom<TLogic>; send: (event: EventFrom<TLogic>) => void; snapshot: Ref<SnapshotFrom<TLogic>> }
actorRef: ActorRefFrom<TLogic>
send: (event: EventFrom<TLogic>) => void
Parameters
event: EventFrom<TLogic>
Returns void
snapshot: Ref<SnapshotFrom<TLogic>>