Optional ReadonlycatchOptional error handler. If provided, errors from render are caught and this function is called to render an error state. Must have no requirements.
Optional ReadonlydelayDelay before showing the fallback. If the render completes before this duration, no fallback is shown. Accepts Effect Duration strings like "200 millis", "1 second", or a number (milliseconds). If not provided, fallback is shown immediately.
ReadonlyfallbackFunction to render the loading/fallback state. Must have no requirements (will be rendered in detached context if delay > 0).
ReadonlyrenderAsync function that returns the final element.
Can fail with error type E if catch is provided.
Options for the suspense boundary (DOM-specialized version).
The
Nparameter is the element type all three branches share. Inferred from the callbacks, defaults toHTMLElement | SVGElement. When all three branches return the same concrete element type (sayHTMLDivElement), the return type of suspense preserves it — no cast needed atmount(...)sites.