Overview
Returns a function that unfollows a target user by their user ID. The current user must be authenticated. This is the simpler alternative touseUnfollowByFollowId when you don’t have the follow record ID.
Usage Example
Parameters
The hook returns a function. That function accepts:The ID of the user to unfollow. Cannot be the current user’s own ID.
Returns
The function returnsPromise<void>.
Related
- useFollowUser — follow a user
- useUnfollowByFollowId — unfollow by follow record ID

