Improves form submissions and updates dependencies (#1209)

This commit is contained in:
Lee Robinson
2023-10-10 21:45:55 -05:00
committed by GitHub
parent ece49c4265
commit 1f47796529
13 changed files with 871 additions and 935 deletions

View File

@@ -22,7 +22,8 @@ export const sorting: SortFilterItem[] = [
export const TAGS = {
collections: 'collections',
products: 'products'
products: 'products',
cart: 'cart'
};
export const HIDDEN_PRODUCT_TAG = 'nextjs-frontend-hidden';

View File

@@ -258,6 +258,7 @@ export async function getCart(cartId: string): Promise<Cart | undefined> {
const res = await shopifyFetch<ShopifyCartOperation>({
query: getCartQuery,
variables: { cartId },
tags: [TAGS.cart],
cache: 'no-store'
});