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

Function useProfileFollowers

  • useProfileFollowers(args): PaginatedReadResult<Profile[]>
  • Fetch profiles that follow a requested profile.

    Parameters

    • args: {
          limit?: InputMaybe<LimitType>;
          of: ProfileId;
          orderBy?: InputMaybe<ProfilesOrderBy>;
      }
      • Optional limit?: InputMaybe<LimitType>
      • of: ProfileId
      • Optional orderBy?: InputMaybe<ProfilesOrderBy>

        The order by which to sort the profiles - note if your looking at your own followers it always be DESC

    Returns PaginatedReadResult<Profile[]>

    Example

    const { data, loading, error } = useProfileFollowers({
    of: '0x123',
    });
    • Defined in packages/react/src/profile/useProfileFollowers.ts:40
  • useProfileFollowers(args): SuspensePaginatedResult<Profile[]>
  • Experimental

    Fetch profiles that follow a requested profile.

    This signature supports React Suspense.

    const { data } = useProfileFollowers({
    of: '0x123',
    suspense: true,
    });

    console.log(data);

    This API can change without notice

    Parameters

    • args: UseSuspenseProfileFollowersArgs

    Returns SuspensePaginatedResult<Profile[]>

    • Defined in packages/react/src/profile/useProfileFollowers.ts:60

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