useMachine
Callable
Type parameters
- TMachine: AnyStateMachine
Parameters
machine: AreAllImplementationsAssumedToBeProvided<TMachine[__TResolvedTypesMeta]> extends true ? TMachine : [Some implementations missing, Values<{ [ K in string | number | symbol ]: Prop<Prop<TMachine[__TResolvedTypesMeta], resolved>, missingImplementations>[K] }>]
options: ActorOptions<TMachine> = {}
Returns [StateFrom<TMachine>, ActorRefFrom<TMachine>[send], ActorRefFrom<TMachine>]
useActor