import { PreactRenderHandler } from "https://deno.land/x/fathym_eac_runtime@v0.1.54/mod.ts";
Constructors
new
PreactRenderHandler(options: AdvancedPreactOptions, bypassEaCBase?: boolean)Properties
protected
ContainerTracker: (props: { id: string; children?: ComponentChildren; }) => VNodeprotected
denoCfg: DenoConfigprotected
islandsMap: Map<ComponentType, Island>protected
islandsTypeMap: Map<string, ComponentType>protected
tracking: { containers: Map<string, ComponentChildren>; ownerStack: VNode[]; owners: Map<VNode, VNode>; patched: WeakSet<VNode>; rendering: boolean; renderingUserTemplate: boolean; template: { bodyProps?: Record<string, unknown>; encounteredIslands: WeakSet<Island>; hasHeadChildren: boolean; headChildNodes: { type: string; props: Record<string, unknown>; }[]; headProps?: Record<string, unknown>; htmlProps?: Record<string, unknown>; islandDepth: number; titleNode?: VNode<any>; userTemplate: boolean; }; }islandsData: IslandDataStore
Methods
protected
addMarker(): VNode<Attributes>protected
beforeDiffHook(vnode: VNode<Record<string, unknown>>)protected
beforeHookStateHook()protected
beforeRenderHook(vnode: VNode<Record<string, unknown>>)protected
configureOwners(vnode: VNode): voidprotected
configureVNode(vnode: VNode): voidprotected
diffedHook(vnode: VNode<Record<string, unknown>>)protected
excludeChildren(props: Record<string, unknown>): Record<string, unknown>protected
hasIslandOwner(vnode: VNode<Record<string, unknown>>): booleanprotected
loadEaCType(vnodeType: string | ComponentType): string | ComponentTypeprotected
processComponentMarkup(vnode: VNode<Record<string, unknown>>): voidprotected
processEaCBypassNodes(vnode: { type: string; } & VNode<Record<string, unknown>>)protected
processStandardMarkup(vnode: VNode<Record<string, unknown>>): voidprotected
refreshTracking(): this.trackingprotected
shouldProcessOwners(vnode: VNode): booleanprotected
vNodeCreateHook(vnode: VNode<Record<string, unknown>>): voidprotected
vnodeDiffed(vnode: VNode<Record<string, unknown>>)AddClientImport(path: string): void
AddIsland(): void
LoadIslands(): Record<string, [string, string]>
RenderPage(renderStack: ComponentType<any>[], ctx: EaCRuntimeContext): Promise<string>