Sanity Library Reference Docs
    Preparing search index...

    Variable addReactionConst Beta

    addReaction: (
        instance: SanityInstance,
        options: ReactionOptions,
    ) => Promise<void> = ...

    Adds the current user's reaction to a comment.

    Explicit rather than a toggle: an app knows whether the user has already reacted, and a toggle would guess wrong whenever the list is a moment stale. Adding a reaction that is already there is harmless.

    Type declaration