OptionalintervalOptionalonHandle errors from the Live Events subscription.
By default it's reported using console.error, you can override this prop to handle it in your own way.
OptionalonHandle the goaway event if the connection is rejected/closed.
event.reason will be a string of why the event was emitted, for example 'connection limit reached'.
When this happens the <SanityLive /> will fallback to long polling with a default interval of 30 seconds, providing your own onGoAway handler does not change this behavior.
If you want to disable long polling set intervalOnGoAway to false or 0.
OptionalrefreshAutomatically refresh when window gets focused
Note that this is different from revalidation, which is based on tags and causes sanityFetch calls to be re-fetched.
OptionalrefreshAutomatic refresh of RSC when the component sanityFetch calls to be re-fetched.
OptionalrefreshAutomatically refresh when the browser regains a network connection (via navigator.onLine)
Note that this is different from revalidation, which is based on tags and causes sanityFetch calls to be re-fetched.
OptionalrequestThis request tag is used to identify the request when viewing request logs from your Sanity Content Lake.
OptionalrevalidateOverride how cache tags are invalidated, you need to pass a server action here.
You can also pass a use client function here, and have router.refresh() be called if the promise resolves to 'refresh'.
Optionaltag
Automatically refresh on an interval when the Live Event API emits a
goawayevent, which indicates that the connection is rejected or closed. This typically happens if the connection limit is reached, or if the connection is idle for too long. To disable this long polling fallback behavior setintervalOnGoAwaytofalseor0. You can also useonGoAwayto handle thegoawayevent in your own way, and read the reason why the event was emitted.