• Preparing search index...
  • The search index is not available
Lens SDK Reference
  • Lens SDK Reference
  • @lens-protocol/react-web
  • Core
  • hasReacted

Function hasReacted

  • hasReacted(args): boolean
  • A helper to check if a certain type of reaction has been added to a publication.

    Parameters

    • args: HasReactedArgs

    Returns boolean

    Example

    const hasUpvoted = hasReacted({
    publication,
    reaction: PublicationReactionType.Upvote,
    });
    • Defined in packages/react/src/publication/useReactionToggle.ts:30

Settings

Member Visibility

Theme

Lens SDK Reference
  • @lens-protocol/react-web - v2.3.2
  • @lens-protocol/react-native - v2.3.2
  • @lens-protocol/client - v2.3.2