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

Function useProfileFollowing

  • useProfileFollowing(args): PaginatedReadResult<Profile[]>
  • Fetch profiles that are followed by a requested profile.

    Parameters

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

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

    Returns PaginatedReadResult<Profile[]>

    Example

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

    Fetch profiles that are followed by a requested profile.

    This signature supports React Suspense.

    const { data } = useProfileFollowing({
    for: '0x123',
    suspense: true,
    });

    console.log(data);

    This API can change without notice

    Parameters

    • args: UseSuspenseProfileFollowingArgs

    Returns SuspensePaginatedResult<Profile[]>

    • Defined in packages/react/src/profile/useProfileFollowing.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