mirror of
https://github.com/vercel/commerce.git
synced 2025-06-08 01:06:59 +00:00
forcing a no-cache for the online store menus since there are no webhooks to update them
This commit is contained in:
parent
556aa77649
commit
4f7309b87f
@ -343,7 +343,7 @@ export async function getCollections(): Promise<Collection[]> {
|
|||||||
export async function getMenu(handle: string): Promise<Menu[]> {
|
export async function getMenu(handle: string): Promise<Menu[]> {
|
||||||
const res = await shopifyFetch<ShopifyMenuOperation>({
|
const res = await shopifyFetch<ShopifyMenuOperation>({
|
||||||
query: getMenuQuery,
|
query: getMenuQuery,
|
||||||
tags: [TAGS.collections],
|
cache: 'no-store',
|
||||||
variables: {
|
variables: {
|
||||||
handle
|
handle
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user