feature/IO-3499-React-19 Checkpoint
This commit is contained in:
@@ -386,11 +386,16 @@ const fetchContextData = async (templateObject, jsrAuth) => {
|
|||||||
if (templateQueryToExecute) {
|
if (templateQueryToExecute) {
|
||||||
const { data } = await client.query({
|
const { data } = await client.query({
|
||||||
query: gql(templateQueryToExecute),
|
query: gql(templateQueryToExecute),
|
||||||
variables: { ...templateObject.variables }
|
variables: { ...templateObject.variables },
|
||||||
|
fetchPolicy: "no-cache"
|
||||||
});
|
});
|
||||||
contextData = data;
|
contextData = data;
|
||||||
}
|
}
|
||||||
return { contextData, useShopSpecificTemplate, shopSpecificFolder };
|
return {
|
||||||
|
contextData,
|
||||||
|
useShopSpecificTemplate,
|
||||||
|
shopSpecificFolder
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return await generateTemplate(templateQueryToExecute, templateObject, useShopSpecificTemplate, shopSpecificFolder);
|
return await generateTemplate(templateQueryToExecute, templateObject, useShopSpecificTemplate, shopSpecificFolder);
|
||||||
|
|||||||
Reference in New Issue
Block a user