Skip to main content

Overview

Returns a function that removes a follow by the follow record’s ID. Use this when you have the follow ID available (the id 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:
string
required
The ID of the follow record to delete (a FollowRow’s id).

Returns

The function returns Promise<void>.