Skip to content

island-ssr.ts#

View Markdown

Source

2 documented symbols. Read the signatures first, then expand each item for parameters, return types, and examples.

2 symbols 1 types 1 modules 4 parameters 1 returns

Reference#

moduleisland-ssrOptional adapter-side island SSR. Framework plugins may supply renderIsland to replace island inner HTML at transform t…

Optional adapter-side island SSR.

Framework plugins may supply renderIsland to replace island inner HTML at transform time. The hook receives the original slot HTML so adapters can pass children into their SSR runtime. This helper stays framework-neutral and does not import a framework SSR runtime.

View source

typeRenderIslandFn = (name: string, props: Record<string, unknown>, filePath: string, slotHtml?: string) => string | Promise<string>Optional adapter-side island SSR. Framework plugins may supply renderIsland to…

Optional adapter-side island SSR.

Framework plugins may supply renderIsland to replace island inner HTML at transform time. The hook receives the original slot HTML so adapters can pass children into their SSR runtime. This helper stays framework-neutral and does not import a framework SSR runtime.

Signature

export type RenderIslandFn = (name: string, props: Record<string, unknown>, filePath: string, slotHtml?: string) => string | Promise<string>

View source

Parameters

  • name string
  • props Record<string, unknown>
  • filePath string
  • slotHtml string

    optional

Returns

string | Promise<string>