Overview
Returns a function that fetches the paginated list of accepted connections for any user, identified byuserId. This is a public endpoint — authentication is not required.
For fetching your own connections, see useFetchConnections.
Usage Example
Parameters
The hook returns a function. That function accepts:The ID of the user whose connections to fetch.
Page number to fetch. Defaults to
1.Number of results per page. Defaults to
20.Returns
Returns aPaginatedResponse containing an array of established connections:
Array of accepted connection entries.
Pagination metadata including
page, pageSize, totalPages, totalItems, and hasMore.Related
- useFetchConnections — fetch the current user’s own connections
- useFetchConnectionsCountByUserId — get count for any user

