Skip to content

Interface: ViewContextValue

API / @xmachines/play-svelte / ViewContextValue

Defined in: packages/play-svelte/src/actor-context.svelte.ts:51

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.

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
handlersRecord<string, ActionHandler>The action handlers, resolved against the live StateStore.BaseViewContextValue.handlerspackages/play-actor/src/abstract-actor.ts:127
registryTRegistryThe component registry, from registryResult.registry.BaseViewContextValue.registrypackages/play-actor/src/abstract-actor.ts:129
specPlaySpecThe current PlaySpec to render.BaseViewContextValue.specpackages/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.BaseViewContextValue.storepackages/play-actor/src/abstract-actor.ts:133