Interface: ViewContextValue
API / @xmachines/play-react / ViewContextValue
Defined in: packages/play-react/src/ActorProvider.tsx:103
The value that ViewContext provides. usePlayView() reads it.
Extends
BaseViewContextValue<ComponentRegistry>
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
handlers | Record<string, ActionHandler> | The action handlers, resolved against the live StateStore. | BaseViewContextValue.handlers | packages/play-view/src/view-types.ts:162 |
registry | TRegistry | The component registry, from registryResult.registry. | BaseViewContextValue.registry | packages/play-view/src/view-types.ts:164 |
spec | PlaySpec | The current PlaySpec to render. | BaseViewContextValue.spec | packages/play-view/src/view-types.ts:160 |
store | StateStore | The active StateStore. Give it to JSONUIProvider or JsonUIProvider as store, and the providers then share the state. | BaseViewContextValue.store | packages/play-view/src/view-types.ts:168 |