-
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 not trigger at version 0.5.24 #1084
Comments
Is this the same as #1085? The explanation is that we now remove old queries and their update functions from the store. I considered this a bugfix, so it was released as a patch. The consequence of the bugfix is that |
They are different issues:
|
I'm going to go ahead and +1 this guy -- for my codebase at least this was definitely a breaking change (an SPA using react-apollo), I had to go back to forceRefetch-ing. Does apollo-client/react-apollo presently provide a way to update/cache-bust a query associated with a component that is not presently mounted? |
I have the same issue, I am unable to access neither updateQueries nor reducer on queries that aren't presently mounted. Is this intended? I don't see how I'd be able to update my other queries now, since they belong to different routes (which means they'll need to be unmounted when not active). I use forceRefetch right now as well, but it's a rather expensive and entirely unnecessary query that gets run now as it fetches data that hasn't changed other than the addition that I'd be able to update manually through updateQueries. Any clues/thoughts on how we can mitigate this? Thanks! |
I can confirm this works for me when I downgrade to 0.5.21. I'll just remain at that version for now, I saw this issue was brought up in another issue as well :) |
same code will trigger
updateQueries
at version 0.5.20, not at version 0.5.24attach my code:
======
The text was updated successfully, but these errors were encountered: