From 8fb0e46cdf20659ce2aa45da39e481ee6d3ca8ed Mon Sep 17 00:00:00 2001 From: Niels Mokkenstorm Date: Sun, 17 May 2026 20:38:06 +0200 Subject: [PATCH] fix(cvg-129): include first in getNextPageParam so server gets full vars on page 2+ (#52) --- apps/client/src/pages/vacancies/VacanciesPage.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/client/src/pages/vacancies/VacanciesPage.tsx b/apps/client/src/pages/vacancies/VacanciesPage.tsx index 923c453..5dd5a13 100644 --- a/apps/client/src/pages/vacancies/VacanciesPage.tsx +++ b/apps/client/src/pages/vacancies/VacanciesPage.tsx @@ -21,9 +21,12 @@ const VacanciesPage = () => { { getNextPageParam: (lastPage) => lastPage.me?.vacancies?.pageInfo.hasNextPage - ? { after: lastPage.me.vacancies.pageInfo.endCursor } + ? { + first: PAGE_SIZE, + after: lastPage.me.vacancies.pageInfo.endCursor, + } : undefined, - initialPageParam: { after: null as string | null }, + initialPageParam: { first: PAGE_SIZE, after: null as string | null }, }, ); const { showError } = useToast(); -- 2.51.2