Overview
useSetRsvp returns a callable that sets or changes the logged-in user’s RSVP. The event’s rsvpCounts update atomically. A transition into going is capacity-checked. RSVPs close at startTime, are rejected on cancelled events, and "maybe" is rejected when allowMaybe is false.
The request is refused when:
- the logged-in user can’t see the event —
404 event/not-found(for example amembersevent once a ban ends their active membership); - they can see it but are banned in its space or a space above it —
403 space/posting-not-allowed; - it’s an
inviteevent they see only as an admin or moderator of its space, without an invite —403 event/not-invited.
Usage Example
Parameters
Returns
Returns aPromise<Event> — the Event with refreshed rsvpCounts and userRsvp.

