Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Fixes refetchQueries with string using wrong variables #2422

Merged
merged 3 commits into from
Sep 28, 2018

Conversation

fracmak
Copy link
Contributor

@fracmak fracmak commented Sep 25, 2018

Fixes #2421

This fixes an issue where any update to the query variables/props aren't reflected in the context operations map, so when a mutation triggers a refetchQueries by name, it does not use the correct variables. This fixes that by making certain the operations map is correctly set on all updateQuery calls.

@apollo-cla
Copy link

@fracmak: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/

@fracmak
Copy link
Contributor Author

fracmak commented Sep 25, 2018

agreement signed

Copy link
Member

@hwillson hwillson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch @fracmak - thanks very much!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refetchQueries as string sometimes use wrong variables
3 participants