Module

x/fresh/src/server/rendering/state.ts>RenderState

The next-gen web framework.
Extremely Popular
Latest
class RenderState
import { RenderState } from "https://dotland.deno.dev/x/fresh@1.7.3/src/server/rendering/state.ts";

Constructors

new
RenderState(
renderUuid: string,
componentStack: any[],
error?: unknown,
)

Properties

basePath: string
componentStack: any[]
csp: ContentSecurityPolicy | undefined
docBody: Record<string, unknown> | null
docHead: Record<string, unknown> | null
docHeadNodes: { type: string; props: Record<string, unknown>; }[]
docHtml: Record<string, unknown> | null
docTitle: VNode<any> | null
encounteredIslands: Set<Island>
encounteredPartials: Set<string>
error: Error | null
headChildren: boolean
headVNodes: ComponentChildren[]
islandDepth: number
islandProps: unknown[]
isPartial: boolean
owners: Map<VNode, VNode>
ownerStack: VNode[]
partialCount: number
partialDepth: number
renderedHtmlTag: boolean
renderingUserTemplate: boolean
readonly
renderUuid: string
slots: Map<string, ComponentChildren>
url: URL