Skip to main content

useFollowUser

Overview

The useFollowUser hook allows a logged-in user to follow another user.

Usage Example

Parameters & Returns

Parameters

The hook returns a function that accepts an object with the following field:
userId
string
required
The ID of the user to follow.

Returns

The function does not return a value but ensures the follow action is executed successfully on the server.