Stone.js API
    Preparing search index...

    Interface StreamRenderOptions

    Options for streaming render.

    interface StreamRenderOptions {
        bootstrapModules?: string[];
        head?: string;
        nonce?: string;
        onShellError?: (error: unknown) => void;
        onShellReady?: () => void;
        signal?: AbortSignal;
        tail?: string;
    }
    Index
    bootstrapModules?: string[]

    Bootstrap module scripts to start hydration on the client.

    head?: string

    Markup injected into the stream head (before the app shell), e.g. the serialized head.

    nonce?: string

    Nonce for CSP.

    onShellError?: (error: unknown) => void

    Called if the shell errored.

    onShellReady?: () => void

    Called when the shell is ready (before streaming Suspense content).

    signal?: AbortSignal

    Abort signal to cancel the stream.

    tail?: string

    Markup appended after the app shell (e.g. the hydration snapshot script).