-
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
updateQueries will not update the data node #1085
Comments
@luckyyang Are you sure that your udpateQuery function even runs? If it runs, it most likely doesn't update because you have an error in it. I recently noticed that errors in reducers get swallowed, so it may be the same here. Make sure to check the entire update function is running, for example by putting a print statement right before the return statement. |
@helfer You mean If it NOT runs ? I don't see any errors in my code and dev tools.
I can see the mutate result has been returned, I put a breakpoint before return statement and got no error and get the update data after refresh the page. Do you have any idea about that? |
works now after I deleted all the data in database, I think It's due to the bad format of my history data. We have changed data schema for several times. close this issue |
updateQueries will not update the data node after successfully get data from graphQl
apollo-client version: 2.5.20
react-apollo version: 0.7.2
screenshots to illustrate the issue:
before create new data:
submit the form and get result from graphQL:
data list not update automatically:
after refresh the page got data updated:
attach my code:
======
The text was updated successfully, but these errors were encountered: