Skip to content

Interface: BaseViewContextValue<TRegistry>

API / @xmachines/play-view / index / BaseViewContextValue

Defined in: packages/play-view/src/view-types.ts:158

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-view/src/view-types.ts:162
registryTRegistryThe component registry, from registryResult.registry.packages/play-view/src/view-types.ts:164
specPlaySpecThe current PlaySpec to render.packages/play-view/src/view-types.ts:160
storeStateStoreThe active StateStore. Give it to JSONUIProvider or JsonUIProvider as store, and the providers then share the state.packages/play-view/src/view-types.ts:168