Sanity App SDK
    Preparing search index...

    Variable resolveCommentsConst Beta

    resolveComments: (
        instance: SanityInstance,
        options: ResolveCommentsOptions,
    ) => Promise<Comment[]> = ...

    Waits for a document's comments to load.

    Holds a subscriber only while resolving, so a component that suspends on this and then errors before mounting does not strand the list. Throw the promise for Suspense, then read through getCommentsState.

    Type Declaration