awslabs / aws-mobile-appsync-sdk-js

JavaScript library files for Offline, Sync, Sigv4. includes support for React Native
Apache License 2.0
920 stars 266 forks source link

update function is not being triggered for queued mutation. #608

Closed rahulnainwal107 closed 2 years ago

rahulnainwal107 commented 3 years ago

Note: If your issue/feature-request/question is regarding the AWS AppSync service, please log it in the official AWS AppSync forum

Do you want to request a feature or report a bug? not sure What is the current behavior?

I am using a query with pagination and cached all data before going to offline (Let's say i have 1000 data, i am getting 50 at a single time) when i am using my app in online mode it is working fine and updating cache on every change but when i am using this application in offline mode and updating thing cache is also updating but when i came back to online my queued mutation being fired and cache is not being updated as update function is not being fired, in this case i am getting only first 50 data.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

What is the expected behavior? Update function should fire after queued mutation. Which versions and which environment (browser, react-native, nodejs) / OS are affected by this issue? Did this work in previous versions?

"react": "16.9.0", "react-apollo": "2.5.6", "react-native": "0.61.5", "aws-amplify": "^2.2.5",

For better understanding there are same issues on other aws-sdks: https://github.com/awslabs/aws-mobile-appsync-sdk-ios/issues/149 https://github.com/awslabs/aws-mobile-appsync-sdk-ios/issues/92 https://github.com/awslabs/aws-mobile-appsync-sdk-ios/issues/390