Skip to main content

Overview

useWithdrawRsvp returns a callable that removes the logged-in user’s RSVP. The RSVP row is deleted and the matching count decremented. The user can always withdraw their own RSVP, also from an event they can no longer see (for example after leaving its space). Withdrawing with no RSVP succeeds and changes nothing if they can see the event, and answers 404 if they can’t.

Usage Example

Parameters

string
required
The event ID.

Returns

Returns a Promise<WithdrawRsvpResponse>: the Event with refreshed rsvpCounts, or, when the logged-in user can no longer see the event, only { id, userRsvp: null }.

See Also