Skip to main content

ViewDiagnostics

interface

How a view tells the host whether it actually rendered. The runtime graph and the eval harness read only this channel. A view that mounts without calling `ready`, or that swallows an error without calling `failed`, reads as a blank panel with nothing to look at. The SDK's own error boundary is already wired to both.

interface ViewDiagnostics

Import

import { ViewDiagnostics } from '@modular/sdk/view';

Members2

failed
(error: unknown) => void

Report a render failure, with the thrown value.

ready
() => void

Report that the component committed to the DOM.

Notes

category
Context