diff --git a/src/pages/index.tsx b/src/pages/index.tsx index c37085c35..8bb128240 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -8,7 +8,10 @@ export const getServerSideProps = declareSsrProps( const { ssrHelpers } = params; - await ssrHelpers.project.getUserProjectsWithGoals.fetch({ goalsQuery: queryState, limit: projectsLimit }); + await ssrHelpers.project.getUserProjectsWithGoals.fetchInfinite({ + goalsQuery: queryState, + limit: projectsLimit, + }); return { defaultPresetFallback, diff --git a/src/pages/projects/index.tsx b/src/pages/projects/index.tsx index e73b03f64..58d084ab3 100644 --- a/src/pages/projects/index.tsx +++ b/src/pages/projects/index.tsx @@ -8,7 +8,7 @@ export const getServerSideProps = declareSsrProps( const { ssrHelpers } = props; - await ssrHelpers.project.getAll.fetch({ + await ssrHelpers.project.getAll.fetchInfinite({ limit: projectsSize, firstLevel: true, goalsQuery: queryState,