Skip to main content

Overview

Returns a function that declines a pending incoming connection request. The connection stays, with status: "declined"; in useConnectionManager it reads as "declined-received". The current user must be authenticated and must be the recipient.

Usage Example

Parameters

The hook returns a function. That function accepts:
string
required
The ID of the connection record to decline.

Returns

A Promise<ConnectionRow> that resolves to the declined connection, seen from the signed-in user’s side (the receiver). See ConnectionRow.
string
The connection’s ID. Accept, decline and remove take it.
User
The user who sent the request. Public profile fields only.
"sent" | "received"
Always "received": the signed-in user received the request.
string | null
The note sent with the request, or null.
"pending" | "accepted" | "declined"
Always "declined".
string
ISO timestamp of when the request was sent.
string | null
ISO timestamp of when the request was declined.