-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error updating store in subscription result handler #101
Comments
This seems related to #92, at least based on the "missing value" message. |
I'm writing a test to verify this behavior, which might be fixed in #177. Can you confirm for me that the cache is empty at the time you're updating the subscription value? That is, you haven't yet processed the results of a |
I've pushed a test to verify that the behavior I described above is handled by #177. If the behavior you're reporting in your original issue is different, please feel free to reopen this, but if not, I'll plan on closing this issue once we release 2.10.1 (which we're planning for later this week). |
This fix is released in 2.10.1. Please let us know if you continue to see issues. |
This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems. |
I subscribed to a new message subscription. When I get the new data and prepare to update the local store with the newly received data, I get an error. Here is the error log:
GraphQLResultError(path: ["allMessageConnection"], underlying: AWSAppSync.JSONDecodingError.missingValue)
And here is my code:
The error lies in this line:
data.allMessageConnection?.messages?.append(messageToAdd)
The text was updated successfully, but these errors were encountered: