OptionalactionServer action called for each content-change message from the Live Content API.
The default action revalidates the cache tags produced by sanityFetch.
OptionalincludeInclude draft and content release version events in the live connection. Otherwise only events for published content are included.
OptionalonCustom error handler. If none is provided, errors are logged with console.error.
Pass 'throw' to throw errors during render so they can be caught by the
unstable_catchError API.
OptionalonCustom handler for the goaway event. Pass false to disable the default
long-polling fallback.
OptionalonCustom handler for the reconnect event. Pass false to disable the
default log behavior.
OptionalonCustom handler for the restart event. Pass false to disable the default
refresh behavior.
OptionalonCustom handler for the welcome event. Pass false to disable the default
connection log.
OptionalrequestRequest tag used to identify the live EventSource request in Sanity Content Lake logs.
OptionalwaitDelays events until after a configured Sanity Function has processed them and called the callback endpoint. When omitted, events are delivered immediately.
Render this in your root layout.tsx to make your page refresh, or revalidate, on new content live, automatically.