Amplify AppSync observeQuery triggers subscribe multiple times because of empty pagination #14224
Open
3 tasks done
Labels
GraphQL
Related to GraphQL API issues
pending-maintainer-response
Issue is pending a response from the Amplify team.
pending-triage
Issue is pending triage
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
GraphQL API
Amplify Version
v6
Amplify Categories
api
Backend
Amplify Gen 2
Environment information
Describe the bug
When subscribing to an observeQuery call, if there are filters and the results are empty, the GraphQL API returns a nextToken and keeps making requests until nextToken is null
Expected behavior
nextToken should be null if the items array is empty
Reproduction steps
Subscribe to a model's observeQuery call with filters that make it so the results are empty
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
The text was updated successfully, but these errors were encountered: