Skip to content

Interface: BaseViewContextValue<TRegistry>

API / @xmachines/play-actor / BaseViewContextValue

Defined in: packages/play-actor/src/abstract-actor.ts:123

The framework-agnostic base of the ViewContextValue type in each framework.

It holds the three fields that are identical in React, Vue, Solid, and Svelte. The registry field belongs to one framework, because each framework has its own ComponentRegistry type. Therefore TRegistry gives its type, and this is the same generic parameter as in BaseActorProviderProps.

Extended by

Type Parameters

Type ParameterDescription
TRegistry extends objectThe registry type of the component of the framework, for example ComponentRegistry from @xmachines/json-render-react.

Properties

PropertyTypeDescriptionDefined in
handlersRecord<string, ActionHandler>The action handlers, resolved against the live StateStore.packages/play-actor/src/abstract-actor.ts:127
registryTRegistryThe component registry, from registryResult.registry.packages/play-actor/src/abstract-actor.ts:129
specPlaySpecThe current PlaySpec to render.packages/play-actor/src/abstract-actor.ts:125
storeStateStoreThe active StateStore. Give it to JSONUIProvider or JsonUIProvider as store, and the providers then share the state.packages/play-actor/src/abstract-actor.ts:133