useFetchFollowersCountByUserId
Overview
TheuseFetchFollowersCountByUserId hook fetches the total number of followers for a specific user. This is a public endpoint that allows you to retrieve follower counts for any user without authentication.
Usage Example
Advanced Usage with State
Parameters & Returns
Parameters
The hook returns a function that accepts an object with the following field:The ID of the user whose follower count to fetch
Returns
The function returns a Promise that resolves to an object containing:The total number of users following this user
Error Handling
The hook will throw errors in the following cases:- No user ID is provided
- No project is specified

