-
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
0.5.22 breaks refetchQueries, reducer, updateQueries #1129
Comments
@mmmdreg Thanks for the bug report! I think this is due to the same change that was mentioned in #1085. The gist of it is that inactive queries now get removed from the store, so their reducer functions no longer run, and they also no longer get refetched unless they are active at that time. It turns out that what I thought was just fixing a bug turned out to also disable a behavior that a lot of people depended on. We'll make this a priority to provide a better solution for updating the cache. Expect to see some activity in that direction early next week! clarification: In addition update (Jan 22, 2017): We've come up with a design that we think is workable and start implementing it this week. |
Is this why |
@booboothefool yes, most likely sorry. If I knew that more people ran into this issue, I would have deprecated 0.5.22 and released it again as 0.6. Unfortunately only one person filed an issue or said anything, so it seemed okay to just keep things as they were since it was considered a bug fix. I will get on this asap. |
We're running into the same issue and had to lock our version at 0.5.21 until it's resolved. |
@helfer ran into the same issue as well |
Hey all, I know that the issue is being discussed in #1224, but does a workaround exist for this? The application that my team and I are developing, heavily relies on this feature. Best regards, Michael |
The current workaround seems to be to downgrade to |
@mlukaszczyk you could not unsubscribe from queries you still may want to update. For React this means not unmounting components with queries you want to update. |
@mlukaszczyk @marktani I've set |
0.5.22 breaks updateQueries : apollographql/apollo-client#1129
0.5.22 breaks updateQueries : apollographql/apollo-client#1129
@calebmer's new PR over here: apollographql/react-apollo#462 solved all of my outstanding issues. I would recommend that people pull the change locally and give it a test. |
Thanks for the heads up @Siyfion 👍 |
I'll close this for now. |
0.5.22 breaks updateQueries : apollographql/apollo-client#1129
I have a pretty basic setup where I am on an 'overview' page, I click a 'create' button which navigates to another page where I can then fill out a form, submit it, and return to the overview page where the submitted item should be reflected.
The submission is a mutation and was using refetchQueries to reload the query loading the overview page. This has recently stopped working.
Checking various versions, it last worked in 0.5.21 and broke in 0.5.22, which seems to have involved changing related functionality.
Basically anywhere in my app using refetchQueries now does nothing and results in stale state.
Is anyone else seeing similar issues?
The text was updated successfully, but these errors were encountered: