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

Function useWhoReactedToPublication

  • useWhoReactedToPublication(args): PaginatedReadResult<ProfileWhoReactedResult[]>
  • useWhoReactedToPublication is a paginated hook that lets you fetch profiles that reacted to a publication, together with the reactions.

    Parameters

    • args: {
          for: PublicationId;
          limit?: InputMaybe<LimitType>;
          orderBy?: InputMaybe<ProfilesOrderBy>;
          where?: InputMaybe<WhoReactedPublicationWhere>;
      }
      • for: PublicationId
      • Optional limit?: InputMaybe<LimitType>
      • Optional orderBy?: InputMaybe<ProfilesOrderBy>

        The order by which to sort the profiles

      • Optional where?: InputMaybe<WhoReactedPublicationWhere>

    Returns PaginatedReadResult<ProfileWhoReactedResult[]>

    Example

    const { data, loading, error } = useWhoReactedToPublication({
    for: '0x123-0x456',
    });
    • Defined in packages/react/src/publication/useWhoReactedToPublication.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