Skip to content

Interface: PlayUIProviderProps

API / @xmachines/play-react / PlayUIProviderProps

Defined in: packages/play-react/src/PlayUIProvider.tsx:34

Props for PlayUIProvider — all ActorProvider props plus JSONUIProvider’s own props.

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
actorAbstractActor<AnyActorLogic, EventObject> & ViewableActor instance with currentView signal (requires Viewable capability).ActorProviderProps.actorpackages/play-actor/src/abstract-actor.ts:154
childrenReactNodeChild components to render inside the provider treeActorProviderProps.childrenpackages/play-react/src/ActorProvider.tsx:37
fallback?ReactNodeOptional component shown when currentView is null or a catalog component throwsActorProviderProps.fallbackpackages/play-react/src/ActorProvider.tsx:33
functions?Record<string, ComputedFunction>Named functions for $computed expressions in propsJSONUIProviderProps.functions-
navigate?(path) => voidNavigation functionJSONUIProviderProps.navigate-
onError?(error, info) => voidOptional error handler callback invoked when a catalog component throws during renderActorProviderProps.onErrorpackages/play-react/src/ActorProvider.tsx:35
onRenderError?RenderErrorHandlerCalled when an individual catalog component throws during render. Takes precedence over any onRenderError set via defineRegistry.ActorProviderProps.onRenderErrorpackages/play-actor/src/abstract-actor.ts:167
registryResultDefineRegistryResultFull result from defineRegistry() — contains the component registry and action handlers factory.ActorProviderProps.registryResultpackages/play-actor/src/abstract-actor.ts:156
store?StateStoreOptional external StateStore (controlled mode). When provided, spec.state is ignored and this store is the single source of truth. When omitted, a fresh @xstate/store atom is created per view transition from spec.state.ActorProviderProps.storepackages/play-actor/src/abstract-actor.ts:162
validationFunctions?Record<string, (value, args?) => boolean>Custom validation functionsJSONUIProviderProps.validationFunctions-