Skip to content

fetchContent

fetchContent(target, options?): Promise<ContentSnapshot | null>

Defined in: client.ts:107

Fetch the first-paint content.

Content-first, rewrite-once: this is what the SDK paints BEFORE any stream exists, so there is never a skeleton on screen. If it fails, the consumer’s fallback prop is what stands in — which is why that prop is required rather than optional.

StreamTarget

(input, init?) => Promise<Response>

AbortSignal

Promise<ContentSnapshot | null>