Skip to main content

Overview

Returns a function that fetches the paginated list of connection requests that other users have sent to the current authenticated user and that have not yet been accepted or declined.
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
Page number to fetch. Defaults to 1.
number
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.

Returns

A PaginatedResponse<ConnectionRow>:
ConnectionRow[]
Array of pending requests. See ConnectionRow.
object
Pagination metadata including page, pageSize, totalPages, totalItems, and hasMore.