@shopify/hydrogen 2024.7.1 → 2024.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/development/index.cjs +2 -4
- package/dist/development/index.cjs.map +1 -1
- package/dist/development/index.js +2 -4
- package/dist/development/index.js.map +1 -1
- package/dist/production/index.cjs +1 -1
- package/dist/production/index.cjs.map +1 -1
- package/dist/production/index.js +1 -1
- package/dist/production/index.js.map +1 -1
- package/dist/vite/virtual-routes/components/{PageLayout.jsx → Layout.jsx} +2 -2
- package/dist/vite/virtual-routes/virtual-root.jsx +7 -6
- package/package.json +1 -1
|
@@ -511,7 +511,7 @@ var errorOnce = (string) => {
|
|
|
511
511
|
};
|
|
512
512
|
|
|
513
513
|
// src/version.ts
|
|
514
|
-
var LIB_VERSION = "2024.7.
|
|
514
|
+
var LIB_VERSION = "2024.7.2";
|
|
515
515
|
|
|
516
516
|
// src/utils/graphql.ts
|
|
517
517
|
function minifyQuery(string) {
|
|
@@ -4484,9 +4484,7 @@ function CartAnalytics({
|
|
|
4484
4484
|
}
|
|
4485
4485
|
}
|
|
4486
4486
|
setCarts(({ cart: cart2, prevCart: prevCart2 }) => {
|
|
4487
|
-
|
|
4488
|
-
return { cart: updatedCart, prevCart: cart2 };
|
|
4489
|
-
return { cart: cart2, prevCart: prevCart2 };
|
|
4487
|
+
return updatedCart?.updatedAt !== cart2?.updatedAt ? { cart: updatedCart, prevCart: cart2 } : { cart: cart2, prevCart: prevCart2 };
|
|
4490
4488
|
});
|
|
4491
4489
|
});
|
|
4492
4490
|
return () => {
|