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, on the rows and the totals alike. The space’s active admins and moderators see every event in their space, invite events included; a host who isn’t an active member of the event’s space sees only what a regular viewer would. See Event visibility. This is the low-level query — for a stateful list with sort state and load-more, use useFetchManyEventsWrapper.
Usage Example
Parameters
Results per page: a whole number from
1 to 100. Defaults to 10. A larger value is rejected with 400 event/invalid-query, never lowered to 100.Sort direction. Left out, the sort’s natural direction: soonest first for
"startTime", most going first for "going".Only this space’s events, or
"none" for events not in any space. Left out: every event.Associations to expand, as a single value or an array:
"user", "space", "files", "userRsvp".Returns
Returns aPromise<PaginatedResponse<Event>> — { data, pagination }.

