Interface: ActorProviderProps
API / @xmachines/play-solid / ActorProviderProps
Defined in: packages/play-solid/src/ActorProvider.tsx:89
The props of ActorProvider, the low-level provider.
For the standard use, prefer PlayUIProvider. That component wraps ActorProvider with JSONUIProvider and with every necessary sub-provider.
Extends
Extended by
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
actor | AbstractActor<AnyActorLogic, EventObject> & Viewable | The actor instance with the currentView signal. It requires the Viewable capability. | BaseActorProviderProps.actor | packages/play-actor/src/abstract-actor.ts:163 |
children | any | The children. They are necessary, and they must hold a | - | packages/play-solid/src/ActorProvider.tsx:101 |
fallback? | any | The optional fallback element. The provider shows it when currentView is null, and when the ErrorBoundary catches an error | - | packages/play-solid/src/ActorProvider.tsx:93 |
onError? | (error) => void | The optional callback. The provider calls it when the SolidJS ErrorBoundary catches an error | - | packages/play-solid/src/ActorProvider.tsx:96 |
onRenderError? | RenderErrorHandler | The provider calls it when one catalog component throws during a render. This handler replaces every onRenderError of defineRegistry. | BaseActorProviderProps.onRenderError | packages/play-actor/src/abstract-actor.ts:177 |
registryResult | DefineRegistryResult | The complete result of defineRegistry(). It holds the component registry and the factory of the action handlers. | BaseActorProviderProps.registryResult | packages/play-actor/src/abstract-actor.ts:165 |
store? | StateStore | The optional external StateStore, which is the controlled mode. With this option, the provider ignores spec.state, and this store is the single source of truth. Without it, the provider makes a new @xstate/store atom for each view transition, with the values of spec.state. | BaseActorProviderProps.store | packages/play-actor/src/abstract-actor.ts:172 |