Overview
Combines follow status fetching and toggle actions into a single hook. On mount, loads whether the current user followsuserId, then provides a toggleFollow function to follow or unfollow in one call.
For integration guidance, see Relationships — useFollowManager.
Usage Example
Parameters
string
required
The ID of the target user.
Returns
boolean | null
true if following, false if not, null while the initial status is loading.boolean
true while the initial status check is in progress.() => Promise<void>
Follows the user if not currently following; unfollows if currently following. No-ops while loading or if
userId is the current user’s own ID.
