useFetchFollowers
Overview
The useFetchFollowers hook fetches the list of users who are following the current logged-in user. It returns paginated results with detailed follow information including when each follow occurred.
Usage Example
Parameters & Returns
Parameters
The hook returns a function that accepts an optional object with the following fields:
Returns
The function returns a Promise that resolves to a FollowersResponse object containing:
FollowersResponse
Array of follower information
FollowerWithFollowInfo
Error Handling
The hook will throw errors in the following cases:
- No project is specified
- No user is logged in