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

Function useRecommendedProfiles

  • useRecommendedProfiles(args): PaginatedReadResult<Profile[]>
  • Provides profile recommendations based on user's social engagement and machine learning predictions.

    const { data, loading, error } = useRecommendedProfiles({
    for: '0x123',
    });

    Parameters

    • args: {
          disableML?: InputMaybe<boolean>;
          for: ProfileId;
          limit?: InputMaybe<LimitType>;
          shuffle?: InputMaybe<boolean>;
      }
      • Optional disableML?: InputMaybe<boolean>

        Disable machine learning recommendations (default: false)

      • for: ProfileId

        Filter based on a specific profile ID

      • Optional limit?: InputMaybe<LimitType>
      • Optional shuffle?: InputMaybe<boolean>

        Shuffle the recommendations (default: false)

    Returns PaginatedReadResult<Profile[]>

    • Defined in packages/react/src/discovery/useRecommendedProfiles.ts:41
  • useRecommendedProfiles(args): SuspensePaginatedResult<Profile[]>
  • Experimental

    Provides profile recommendations based on user's social engagement and machine learning predictions.

    This signature supports React Suspense.

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

    console.log(data);

    This API can change without notice

    Parameters

    • args: UseSuspenseRecommendedProfilesArgs

    Returns SuspensePaginatedResult<Profile[]>

    • Defined in packages/react/src/discovery/useRecommendedProfiles.ts:63

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