mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-10-16 01:05:42 -04:00
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:
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,
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user