We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ddae10 commit 0e4c5aeCopy full SHA for 0e4c5ae
src/store/events.ts
@@ -65,6 +65,7 @@ export const useEventsStore = createSharedComposable(() => {
65
}
66
67
async function fetchAllEvents(page: number, accumulatedEvents: RawEvent[] = []): Promise<RawEvent[]> {
68
+ if (page >= 4) return accumulatedEvents; // Pagination is limited by API
69
const response = await fetchCurrentUserReceivedEvents(page);
70
const currentPageEvents = response?.data ?? [];
71
if (!currentPageEvents.length) return accumulatedEvents;
0 commit comments