Overview
Returns a function that removes a follow by the follow record’s ID. Use this when you have the follow ID available (theid of a FollowRow, e.g. from a following list). Only the follower can remove a follow. If you only have the user ID, use useUnfollowUserByUserId instead.
Usage Example
Parameters
The hook returns a function. That function accepts:Returns
The function returnsPromise<void>.
Related
- useUnfollowUserByUserId — unfollow by user ID instead
- useFetchFollowing — each entry’s
idis the follow record’s ID

