We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b727b2 commit 03f18f6Copy full SHA for 03f18f6
packages/shop/src/hooks/index.ts
@@ -71,7 +71,7 @@ namespace ShopHooks {
71
72
export const useProducts = (client: ShopAPIClient, qs?: ShopSchemas.ProductListQueryParams) =>
73
useSuspenseQuery({
74
- queryKey: QUERY_KEYS.PRODUCT_LIST,
+ queryKey: [...QUERY_KEYS.PRODUCT_LIST, qs ? JSON.stringify(qs) : ""],
75
queryFn: () => ShopAPIs.listProducts(client)(qs),
76
});
77
0 commit comments