-
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
Mutation will throw a missing store field if a query before errored or was canceled #647
Labels
Comments
rricard
changed the title
Client will throw a missing store field if a request errored or was canceled
Mutaion will throw a missing store field if a query before errored or was canceled
Sep 14, 2016
rricard
changed the title
Mutaion will throw a missing store field if a query before errored or was canceled
Mutation will throw a missing store field if a query before errored or was canceled
Sep 14, 2016
Well! Got the source of the bug: when the mutation applies an
|
I reproduced the bug in a test in #651 |
rricard
added a commit
that referenced
this issue
Sep 15, 2016
We avoid running the reducer on those cases Fixes #647
rricard
added a commit
that referenced
this issue
Sep 16, 2016
rricard
added a commit
that referenced
this issue
Sep 16, 2016
We avoid running the reducer on those cases Fixes #647
rricard
added a commit
that referenced
this issue
Sep 19, 2016
rricard
added a commit
that referenced
this issue
Sep 19, 2016
We avoid running the reducer on those cases Fixes #647
rricard
added a commit
that referenced
this issue
Sep 20, 2016
rricard
added a commit
that referenced
this issue
Sep 20, 2016
We avoid running the reducer on those cases Fixes #647
rricard
added a commit
that referenced
this issue
Sep 21, 2016
rricard
added a commit
that referenced
this issue
Sep 21, 2016
We avoid running the reducer on those cases Fixes #647
rricard
added a commit
that referenced
this issue
Sep 22, 2016
10 tasks
rricard
added a commit
that referenced
this issue
Sep 27, 2016
rricard
added a commit
that referenced
this issue
Sep 28, 2016
helfer
added a commit
that referenced
this issue
Sep 29, 2016
Fix #647 - Read store in returnPartialData mode if the previous queries failed or were cancelled
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This following line will throw: https://github.com/apollostack/apollo-client/blob/master/src/data/diffAgainstStore.ts#L339 on a mutation if a query before was canceled or errored. This is bad since it makes fail every mutation even the unrelated ones! I had hard time pinpointing this one but we should find an elegant solution to it. For now I'll try to set globally
throwOnMissingField
to false but I think we have ways to be smarter (preventing to register a failed or canceled result is one of those)The stack I got is here:
The text was updated successfully, but these errors were encountered: