Overview
useFetchManyEvents returns a callable that fetches a single page of events with all filters, sorting, geo, and free-text search. Visibility is enforced server-side. This is the low-level query — for a stateful list with sort state and load-more, use useFetchManyEventsWrapper .
Usage Example
Parameters
Page number (1-indexed). Defaults to 1.
Results per page. Capped at 100.
Sort field. Defaults to "startTime".
Sort direction. Defaults to "asc".
timeWindow "upcoming" | "ongoing" | "past"
Derived time window.
ISO datetime lower bound on startTime.
ISO datetime upper bound on startTime.
Only events this user hosts.
type "online" | "physical" | "hybrid"
Filter by type.
myRsvp RsvpStatus | RsvpStatus[]
Statuses the logged-in user RSVP’d with, e.g. ["going","maybe"].
locationFilters { latitude; longitude; radius }
Proximity filter (radius in meters).
titleFilters { hasTitle?; includes?; doesNotInclude? }
Free-text filter on title.
descriptionFilters { hasDescription?; includes?; doesNotInclude? }
Free-text filter on description.
Returns
Returns a Promise<PaginatedResponse<Event>> — { data, pagination }.
See Also