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
clearing out errors when fetchMore is called #2535
Conversation
@prybalko: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/ |
Generated by 🚫 dangerJS |
^ |
@prybalko this may work, can you add a test to show the issue and how this fixes it? |
@kennethlynne would you be able to pick up this PR and add a couple test cases for it? |
I will take a look at it, later this week (maybe tomorrow). |
I still receive the same error even with this fix
|
I need some help here @jbaxleyiii. This is how I have observed fetch-more to work in apollo.
Not having as much intimate knowledge of the workings of apollo, I am unsure of how to recover here. When fetch more fails. should we reassign the original query back to query id 1, since we have that in cache. And only error out the fetchMore (query with id 2)? Or is there something major/minor I am missing here? Reproducible repo for apollo 2 here: https://github.com/sondremare/react-apollo-fetch-more-error |
@sondremare I'll take a look! This is definitely something that needs to be fixed! |
@jbaxleyiii You probably have seen it, but I have a PR here #2906 that seems to fix the problem if used alongside react-apollo 2.1.0-beta, according to discussion in #2539 |
As mentioned in #2533 (comment), this is no longer an issue (verified against |
This fixes #2533. Does this seem like a reasonable amendment?
Checklist: