Interface: DefineRegistryResult
API / @xmachines/play-dom / DefineRegistryResult
Defined in: @xmachines/json-render-dom
Result returned by defineRegistry.
Matches DefineRegistryResult from @xmachines/json-render-react, /solid, /svelte, /vue.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
executeAction | (actionName, params, setState, state?) => Promise<void> | Execute a named action by name, with optional params. Mirrors executeAction on DefineRegistryResult from @xmachines/json-render-react, /solid, /vue, /svelte. Useful for programmatically triggering actions outside of the emit/on flow. | - |
handlers | (getSetState, getState) => Record<string, ActionHandler> | Create ActionProvider-compatible handlers. Accepts getter functions (called lazily at action-invocation time) so handlers always see the latest setState and state snapshot — matching the pattern from the framework renderers. Host renderers typically wire these from their state store. Pass () => undefined, () => ({}) only in tests or when state management is not needed. | - |
registry | DomRegistry | The built DomRegistry, ready to pass to renderSpec. | - |