diff --git a/client/src/utils/RenderTemplate.js b/client/src/utils/RenderTemplate.js index 82eadfa00..edac5659d 100644 --- a/client/src/utils/RenderTemplate.js +++ b/client/src/utils/RenderTemplate.js @@ -386,11 +386,16 @@ const fetchContextData = async (templateObject, jsrAuth) => { if (templateQueryToExecute) { const { data } = await client.query({ query: gql(templateQueryToExecute), - variables: { ...templateObject.variables } + variables: { ...templateObject.variables }, + fetchPolicy: "no-cache" }); contextData = data; } - return { contextData, useShopSpecificTemplate, shopSpecificFolder }; + return { + contextData, + useShopSpecificTemplate, + shopSpecificFolder + }; } return await generateTemplate(templateQueryToExecute, templateObject, useShopSpecificTemplate, shopSpecificFolder);