Sanity Library Reference Docs
    Preparing search index...
    SanityLiveOnRestart:
        | (
            (
                event: Extract<LiveEvent, { type: "restart" }>,
                context: SanityLiveContext,
            ) => void | Promise<void | "refresh">
        )
        | "refresh"

    Handles the Live Content API restart event.

    The default behavior refreshes the route so Server Components can render with fresh data after the Live Content API restarts.