fix: stop infinite lists from evicting their first page

Every infinite list set maxPages: 10 without getPreviousPageParam, so TanStack Query dropped the first page once an 11th was fetched and it could never be scrolled back to. These lists are forward-only, so remove maxPages.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
jakeandClaude Sonnet 5.5 committed 2026-10-04 16:17:03 -04:00
1 parent 68693415bf
commit 8b10b5cb45
13 files changed
-16

No files matched your search

@@ -67,7 +67,6 @@ export default function UpcomingScreen() {
}),
initialPageParam: undefined as string | undefined,
getNextPageParam: (lastPage) => lastPage.nextCursor ?? undefined,
maxPages: 10,
}),
);