Sanity Library Reference Docs
    Preparing search index...

    Variable createCommentConst Beta

    createComment: (
        instance: SanityInstance,
        options: CreateCommentOptions,
    ) => Promise<Comment> = ...

    Starts a thread on one of a document's fields.

    The comment appears locally before the server confirms it; if the write fails it stays, carrying state.createError, and retrying with the same commentId replaces it.

    Type declaration