Skip to main content

useFetchUserFollowersCount

Overview

The useFetchUserFollowersCount hook is used to retrieve the number of followers for a specific user within the current project. This is useful for displaying follower counts in user profiles or social features.

Usage Example

Parameters & Returns

Parameters

The hook returns a function that accepts the following parameter:
userId
string
required
The ID of the user to fetch follower count for.

Returns

The function resolves with an object containing the follower count:
response.count
number
The number of followers.