Overview
Returns a function that fetches the paginated list of users the currently authenticated user follows. Each entry includes the follow record ID, the followed user’s profile, and the timestamp. For fetching another user’s following list, seeuseFetchFollowingByUserId.
Users with a block between them and you, in either direction, are excluded
from the results. Requires the
moderation bundle.Usage Example
Parameters
The hook returns a function. That function accepts:Optional search term. Filters the list to users whose username or name contains this text (case-insensitive). When omitted, no filtering is applied.
Restricts which field
query matches against — username or name. When omitted, query matches either field.Returns
Returns aPaginatedResponse containing an array of following entries:
Pagination metadata including
currentPage, totalPages, totalCount, hasNextPage, and hasPreviousPage.Related
- useFetchFollowingByUserId — fetch another user’s following list
- useFetchFollowingCount — get total following count

