RenderContext
Shared render-tree dependencies supplied to elements: registry, state store, computed functions, action handlers, and event callback.
import type { RenderContext } from '@threadplane/render';Declaration
export interface RenderContext {
emitEvent?: (event: RenderEvent) => void;
functions?: Record<string, ComputedFunction>;
handlers?: Record<string, (params: Record<string, unknown>) => unknown | Promise<unknown>>;
loading?: boolean;
registry: AngularRegistry;
store: StateStore;
}Members
emitEvent
emitEvent?: (event: RenderEvent) => void;functions
functions?: Record<string, ComputedFunction>;handlers
handlers?: Record<string, (params: Record<string, unknown>) => unknown | Promise<unknown>>;loading
loading?: boolean;registry
registry: AngularRegistry;store
store: StateStore;