interface / @typed/react

ViewOptions

Optional host identity override. Generated per render and restored during hydration by default.

Package version
1.0.0-beta.13
Category
interface

Import

import { ViewOptions } from "@typed/react";

This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.

Signatures

export interface ViewOptions {
    readonly id?: string;
    readonly stopPropagation?: RootEventOptions;
    readonly identifierPrefix?: string;
    readonly onRecoverableError?: (error: unknown) => void;
}

Property: id

Optional host identity override. Generated per render and restored during hydration by default.

Property: identifierPrefix

Must match between server and browser; give independent roots distinct prefixes when using useId.

Property: onRecoverableError

Recoverable hydration diagnostics, forwarded directly from React.

Property: stopPropagation

Stops selected events at the automatic host; undefined inherits CurrentRootEvents.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source