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

Function useWhoActedOnPublication

  • useWhoActedOnPublication(args): PaginatedReadResult<Profile[]>
  • useWhoActedOnPublication is a paginated hook that lets you fetch profiles that acted on a publication.

    Parameters

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

        The order by which to sort the profiles

      • Optional where?: InputMaybe<WhoActedOnPublicationWhere>

    Returns PaginatedReadResult<Profile[]>

    Example

    const { data, loading, error } = useWhoActedOnPublication({
    on: '0x123-0x456',
    });
    • Defined in packages/react/src/profile/useWhoActedOnPublication.ts:29

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