Overview
Returns a function that fetches the paginated list of accepted connections for the currently authenticated user. Each entry includes the connected user’s profile and timestamps. For fetching another user’s connections, seeuseFetchConnectionsByUserId.
Usage Example
Parameters
The hook returns a function. That function accepts:Page number to fetch. Defaults to
1.Number of results per page. Defaults to
20.Optional search term. Filters the list to connections whose connected user’s 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 established connections:
Array of accepted connection entries.
Pagination metadata including
page, pageSize, totalPages, totalItems, and hasMore.Related
- useFetchConnectionsByUserId — fetch another user’s connections
- useFetchConnectionsCount — get total connection count

