Thanks to visit codestin.com
Credit goes to github.com

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

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!

@hwillson hwillson merged commit 7a63b82 into apollographql:master Sep 28, 2018
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