Skip to main content

Overview

Returns a function that checks whether the current authenticated user follows a given userId. Resolves to a FollowStatus: isFollowing, plus the follow row when they do.

Usage Example

Parameters

The hook returns a function. That function accepts:
string
required
The ID of the user to check. Cannot be the current user’s own ID.

Returns

The function resolves to a FollowStatus:
boolean
Whether the current user is following the target user.
FollowRow | undefined
The follow row, present only when isFollowing is true. Its user is the target user. See FollowRow.