Skip to content

Interface: PlayUIProviderProps

API / @xmachines/play-vue / PlayUIProviderProps

Defined in: packages/play-vue/src/types.ts:29

The props of the ActorProvider component. This file holds them, so that TypeScript can re-export them. The vue-shim has a limit that stops a re-export from the .vue file.

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
functions?Record<string, (args?, state?) => unknown>The named functions of a $computed expression in a prop-packages/play-vue/src/types.ts:38
navigate?(path) => voidThe navigate function. The provider gives it to JSONUIProvider, which resolves each link with it-packages/play-vue/src/types.ts:31
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>The validation functions. The provider gives them to JSONUIProvider-packages/play-vue/src/types.ts:33