-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
On reset store and allow ignore fragments on removeDirectives #3010
Conversation
b5defdf
to
bdfa5ec
Compare
Generated by 🚫 dangerJS |
0ab8e63
to
d1e2735
Compare
Currently this splits The problem with this split as a simple implementation is this error is used to reject the in-flight queries. When the promise representing the in-flight query is rejected, this code path for notifying the observableQuery of an error is invoked. If the query is not told to be refetched before that code, then a check for a new request fails. The in-flight error is then passed to the observableQuery, which notifies the observableQuery of the error. The current implementation of apollo-client invokes The question then is how should I think Another thing to note is the promise representing the fetch is garbage collected after the error has notified, so an other option of not erroring on an observableQuery when the store is reset would need to take that into account |
…and added try catch fail
…ing lastRequestId
…ter describe onResetStore ordering test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @akiran, @evans, and @jbaxleyiii for all your work on this PR!! So excited to finally squash this bug
Fix test issues of #2843