Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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

Constructors

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

Properties

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>
headChildren: boolean
headVNodes: ComponentChildren[]
islandProps: unknown[]
owners: Map<VNode, VNode>
ownerStack: VNode[]
renderedHtmlTag: boolean
renderingUserTemplate: boolean
slots: Map<string, ComponentChildren>