Sanity App SDK
    Preparing search index...

    Variable createCommentConst Beta

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

    Starts a thread on a document, or on one of its fields.

    Creates the project's comments dataset if this is the first comment anywhere in it. 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