useFetchFollowStatus
Overview
TheuseFetchFollowStatus
hook allows you to check whether the current logged-in user is following a specific user. It returns detailed follow information including the follow relationship status, follow ID, and when the follow occurred.
Usage Example
Parameters & Returns
Parameters
The hook returns a function that accepts an object with the following field:The ID of the user to check follow status for.
Returns
The function returns a Promise that resolves to an object containing:Whether the current user is following the target user
The ID of the follow relationship (if following)
ISO date string of when the follow occurred
Error Handling
The hook will throw errors in the following cases:- No project is specified
- No user is logged in
- No user ID is provided
- Attempting to check follow status for yourself