Skip to content

Type Alias: AnyPlayActor

API / @xmachines/play-vue / AnyPlayActor

type AnyPlayActor = PlayActor;

Defined in: packages/play-vue/src/useActor.ts:53

The actor type of the context of this renderer.

It is the PlayActor contract, which is state and send, and it names no engine, no routing and no view. A component inside the render tree reads the context to SEND an event, for example a retry from a fallback, and nothing reads currentView through it: a renderer receives the view from its provider, and not from this context.

It was AbstractActor<AnyActorLogic>, which demanded the whole Actor surface of XState from a context that reads two members.