Prepare for using PPR (#1236)

This commit is contained in:
Lee Robinson
2024-04-17 21:54:09 -05:00
committed by GitHub
parent 610b0e8692
commit 887d437795
16 changed files with 241 additions and 237 deletions

View File

@@ -357,6 +357,7 @@ export async function getMenu(handle: string): Promise<Menu[]> {
export async function getPage(handle: string): Promise<Page> {
const res = await shopifyFetch<ShopifyPageOperation>({
query: getPageQuery,
cache: 'no-store',
variables: { handle }
});
@@ -365,7 +366,8 @@ export async function getPage(handle: string): Promise<Page> {
export async function getPages(): Promise<Page[]> {
const res = await shopifyFetch<ShopifyPagesOperation>({
query: getPagesQuery
query: getPagesQuery,
cache: 'no-store'
});
return removeEdgesAndNodes(res.body.data.pages);