Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Skeleton template News index page throws pagination error #1337

Closed
gfscott opened this issue Sep 13, 2023 · 1 comment · Fixed by #1441
Closed

Skeleton template News index page throws pagination error #1337

gfscott opened this issue Sep 13, 2023 · 1 comment · Fixed by #1441
Assignees

Comments

@gfscott
Copy link
Contributor

gfscott commented Sep 13, 2023

In a new Hydrogen project using example data from Mock.shop, the /blogs/news route is throwing a pagination error:

Screenshot of /blogs/news with pagination error displaying

@marcomezzavilla
Copy link

It seems that startCursor is missing inside the pageInfo object (around line 124).

const BLOGS_QUERY = `#graphql
  ...
    pageInfo {
      hasPreviousPage
      hasNextPage
      hasNextPage
      startCursor <-- missing field
      endCursor
  ...
`

@blittle blittle self-assigned this Oct 20, 2023
blittle added a commit that referenced this issue Oct 20, 2023
blittle added a commit that referenced this issue Oct 20, 2023
blittle added a commit that referenced this issue Oct 20, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
3 participants