Skip to main content

Overview

Returns a function that fetches the paginated list of users that a given user follows, identified by userId. This is a public endpoint — authentication is not required. For fetching your own following list, see useFetchFollowing.

Usage Example

Parameters

The hook returns a function. That function accepts:
string
required
The ID of the user whose following list to fetch.
number
Page number to fetch. Defaults to 1.
number
Number of results per page. Defaults to 20.
string
Resolves each followed user’s reputation into a spaceReputation number on the embedded user. Accepts a space <uuid> or "none" (project-general bucket) only — "context" is rejected with a 400 on this endpoint. Empty string, "general", and null are also rejected. See Reputation.
boolean
When true, spaceReputation is the subtree sum (the space plus all its descendants). Only honored when spaceReputationId is an explicit <uuid>.

Returns

Returns a PaginatedResponse containing an array of following entries:
FollowingWithFollowInfo[]
Array of following entries.
object
Pagination metadata including currentPage, totalPages, totalCount, hasNextPage, and hasPreviousPage.