Sanity Library Reference Docs
    Preparing search index...
    SanityLiveOnError:
        | ((error: unknown, context: SanityLiveContext) => void)
        | "throw"

    Handles connection, parsing, and event-processing errors.

    If no handler is provided, the error is logged with console.error. Pass 'throw' to throw errors during render so they can be caught by the unstable_catchError API which supports unstable_retry for retrying the render.