Sanity Library Reference Docs
    Preparing search index...

    Variable getCommentsErrorStateConst Beta

    getCommentsErrorState: (
        instance: SanityInstance,
        options: CommentsOptions,
    ) => StateSource<unknown> = ...

    Why a document's comments stopped following the server, if they have.

    A list that has loaded survives its listener failing: it keeps being served as it last stood rather than replacing what someone is reading with an error. This is how that is noticed. It clears when a listener comes back, which happens on the next client change — a token refresh, typically.

    undefined while the list is live, and while it has yet to load at all: a failure before the first snapshot is thrown from the read instead.

    Type declaration