useFetchFollowersByUserId
Overview
TheuseFetchFollowersByUserId hook fetches the list of users who are following a specific user. This is a public endpoint that allows you to view any user’s followers with pagination support.
Usage Example
Advanced Usage with State Management
Parameters & Returns
Parameters
The hook returns a function that accepts an object with the following fields:string
required
number
1
number
20
Returns
The function returns a Promise that resolves to aFollowersResponse object containing:
FollowersResponse
FollowerWithFollowInfo[]
Array of follower information
PaginationInfo
Pagination metadata
FollowerWithFollowInfo
PaginationInfo
Error Handling
The hook will throw errors in the following cases:- No user ID is provided
- No project is specified

