graphql pageInfo.hasNextPage did not work properly after upgrade packages to latest version #32485
Closed
2 tasks done
Labels
topic: GraphQL
Related to Gatsby's GraphQL layer
type: bug
An issue or pull request relating to a bug in Gatsby
Preliminary Checks
Description
I upgraded all package version to the latest (information below) and the pagination feature broke due to the unexpected value on
pageInfo.hasNextValue
Page 1, Next button is enabled ✅
Page 2, Next button is disabled ❌
Page 3, Next button is disabled ❌
Reproduction Link
https://github.com/hgb123/gatsby-issue-reproduce
Steps to Reproduce
yarn
yarn start
localhost:8000
Next
buttonExpected Result
pageInfo.hasNextPage
should betrue
on page 1-3/4Actual Result
pageInfo.hasNextPage
wasfalse
on page 2/4, 3/4Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: