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".Derived time window.
ISO datetime lower bound on
startTime.ISO datetime upper bound on
startTime.Restrict to one space.
Only events this user hosts.
Filter by type.
Defaults to
"active".Statuses the logged-in user RSVP’d with, e.g.
["going","maybe"].Proximity filter (radius in meters).
Free-text filter on
title.Free-text filter on
description.Associations to expand.
Returns
Returns aPromise<PaginatedResponse<Event>> — { data, pagination }.

