Sanity Library Reference Docs
    Preparing search index...

    Type Alias CommentFieldValueBeta

    CommentFieldValue: CollaborationCommentFieldValue

    The Portable Text a CommentAnchor is offsets into.

    Set it as the anchor's fieldValue to have the API resolve the anchor against these blocks rather than against the document it holds. That is what an editor with unsaved changes needs: the anchor describes text the server has not seen yet, so resolving it against the stored document lands the comment on the wrong words, or nowhere.

    The blocks from the anchor's start _key through its end _key are enough; the whole field is also fine.