From 8cafe81c2c56cb3eb9c1127d347c533b5885ebc3 Mon Sep 17 00:00:00 2001 From: Kevin Date: Fri, 12 Jun 2020 20:18:32 -0400 Subject: [PATCH] Fix - Make sure cached static queries use original hash --- gatsby-node.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gatsby-node.js b/gatsby-node.js index 051b8da..c575578 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -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 } ); diff --git a/package.json b/package.json index b01f3c3..1bee42c 100644 --- a/package.json +++ b/package.json @@ -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 ", "keywords": [ "gatsby"