Skip to content

Commit

Permalink
Fix - Make sure cached static queries use original hash
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcaloon committed Jun 13, 2020
1 parent 3f7fafe commit 8cafe81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ async function processFileStaticQueries( file, nodes, cache ) {
results.push( result );
}

const hash = hashQuery( finalQuery );
const hash = hashQuery( staticQuery );
const json = JSON.stringify( result );

results.push( { hash, json } );
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gatsby-plugin-groq",
"description": "Gatsby plugin for using GROQ in place of GraphQL",
"version": "1.0.0-alpha.10",
"version": "1.0.0-alpha.11",
"author": "Kevin McAloon <[email protected]>",
"keywords": [
"gatsby"
Expand Down

0 comments on commit 8cafe81

Please sign in to comment.