Variable: ActorProvider
API / @xmachines/play-solid / ActorProvider
const ActorProvider: Component<ActorProviderProps>;Defined in: packages/play-solid/src/ActorProvider.tsx:165
The ActorProvider component. It owns the actor bridge, the signal subscription, the StateStore lifecycle, the resolution of the handlers, and the error boundary.
D-11: this component replaces the old raw alias
ActorProvider = ActorContext.Provider. A consumer with an
<ActorProvider value={actor}> element takes
<ActorContext.Provider value={actor}> now, for the raw access to the provider.
That consumer can also move to this component, or to PlayUIProvider.
Example
import { ActorProvider, PlayRenderer } from "@xmachines/play-solid";
<ActorProvider actor={myActor} registryResult={registryResult}> <PlayRenderer /></ActorProvider>;