Skip to content

Interface: PlayUIProviderProps

API / @xmachines/play-solid / PlayUIProviderProps

Defined in: packages/play-solid/src/PlayUIProvider.tsx:37

The props of PlayUIProvider — every ActorProvider prop, and also the props that it forwards to JSONUIProvider.

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
actorAbstractActor<AnyActorLogic, EventObject> & ViewableThe actor instance with the currentView signal. It requires the Viewable capability.ActorProviderProps.actorpackages/play-actor/src/abstract-actor.ts:163
childrenanyThe children. They are necessary, and they must hold a . You can also use the PlayUIProvider short formActorProviderProps.childrenpackages/play-solid/src/ActorProvider.tsx:101
fallback?anyThe optional fallback element. The provider shows it when currentView is null, and when the ErrorBoundary catches an errorActorProviderProps.fallbackpackages/play-solid/src/ActorProvider.tsx:93
functions?Record<string, ComputedFunction>Named functions for $computed expressions in propsJSONUIProviderProps.functions-
navigate?(path) => voidNavigation functionJSONUIProviderProps.navigate-
onError?(error) => voidThe optional callback. The provider calls it when the SolidJS ErrorBoundary catches an errorActorProviderProps.onErrorpackages/play-solid/src/ActorProvider.tsx:96
onRenderError?RenderErrorHandlerThe provider calls it when one catalog component throws during a render. This handler replaces every onRenderError of defineRegistry.ActorProviderProps.onRenderErrorpackages/play-actor/src/abstract-actor.ts:177
registryResultDefineRegistryResultThe complete result of defineRegistry(). It holds the component registry and the factory of the action handlers.ActorProviderProps.registryResultpackages/play-actor/src/abstract-actor.ts:165
store?StateStoreThe 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.ActorProviderProps.storepackages/play-actor/src/abstract-actor.ts:172
validationFunctions?Record<string, (value, args?) => boolean>Custom validation functionsJSONUIProviderProps.validationFunctions-