Sanity App SDK
    Preparing search index...

    Variable getCommentThreadsStateConst Beta

    getCommentThreadsState: (
        instance: SanityInstance,
        options: CommentsOptions,
    ) => StateSource<CommentThread[] | undefined> = ...

    Threads on a document, newest thread first, each with its replies oldest first.

    A thread's status and fieldPath come from its first comment, so filtering by either selects whole threads rather than individual replies.

    Type Declaration