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 Parameter | Description |
|---|---|
TRegistry extends object | The registry type of the component of the framework, for example ComponentRegistry from @xmachines/json-render-react. |
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
handlers | Record<string, ActionHandler> | The action handlers, resolved against the live StateStore. | packages/play-actor/src/abstract-actor.ts:127 |
registry | TRegistry | The component registry, from registryResult.registry. | packages/play-actor/src/abstract-actor.ts:129 |
spec | PlaySpec | The current PlaySpec to render. | packages/play-actor/src/abstract-actor.ts:125 |
store | StateStore | The 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 |