Overview
Returns a function that fetches the paginated list of accepted connections for the currently authenticated user. Each entry includes the other user’s profile and the connection’s timestamps. For fetching another user’s connections, seeuseFetchConnectionsByUserId.
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:Number of results per page: a whole number from
1 to 100. Defaults to 20. A larger value is rejected with 400 connection/invalid-query, never lowered to 100.Optional search term. Filters the list to connections whose connected user’s username or name contains this text (case-insensitive). When omitted or blank, no filtering is applied: a blank
query is left out of the request, and searchFields with it.Restricts which field
query matches against — username or name. When omitted, query matches either field.Returns
APaginatedResponse<AcceptedConnectionRow>:
Array of accepted connections. See AcceptedConnectionRow.
Related
- useFetchConnectionsByUserId — fetch another user’s connections
- useFetchConnectionsCount — get total connection count

