Variable: ActorProvider
API / @xmachines/play-react / ActorProvider
const ActorProvider: React.FC<ActorProviderProps>;Defined in: packages/play-react/src/ActorProvider.tsx:202
ActorProvider — the low-level provider that composes the actor lifecycle with your own providers.
It subscribes to the actor.currentView signal. It manages the StateStore lifecycle of each view. It wraps the children in StateProvider and in PlayErrorBoundary. It also puts onRenderError into the component registry.
Standard use: prefer
Example
// A custom composition:<ActorProvider actor={actor} registryResult={registryResult}> <JSONUIProvider registry={registryResult.registry}> <PlayRenderer /> </JSONUIProvider></ActorProvider>
// Standard use: prefer PlayUIProvider<PlayUIProvider actor={actor} registryResult={registryResult}> <PlayRenderer /></PlayUIProvider>