Skip to content

Commit

Permalink
fix: fix ssr on dashboard& projects pages
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisVorop committed Sep 4, 2023
1 parent 38f6b1b commit 7aa9fc8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/projects/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7aa9fc8

Please sign in to comment.