Skip to content
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

compare both query text and hash when checking if we need to rerun StaticQuery #7846

Merged
merged 2 commits into from
Sep 4, 2018

Conversation

pieh
Copy link
Contributor

@pieh pieh commented Sep 3, 2018

fixes #7752

explanation in code diff

@KyleAMathews
Copy link
Contributor

Hmm oh interesting. This means that the hashes aren't good IDs as the query could change if you change a fragment but the hash would still be the same. This is bad as it means we can't actually cache the resulting json files. This seem correct to you?

@pieh
Copy link
Contributor Author

pieh commented Sep 4, 2018

Static query results are handled by webpack, so caching is not a problem here.

@m-allanson m-allanson merged commit 0b7f11e into gatsbyjs:master Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v2] StaticQuery graphql fails with whitespace
3 participants