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.6.5/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