@pack/hydrogen 2.0.4 → 2.0.6
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/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6529,7 +6529,7 @@ var usePackLoaderData = () => {
|
|
|
6529
6529
|
const loaderData = useLoaderData();
|
|
6530
6530
|
packTestInfo = loaderData?.packTestInfo;
|
|
6531
6531
|
const [root] = useMatches();
|
|
6532
|
-
packIsPreviewMode = root?.data?.packIsPreviewMode;
|
|
6532
|
+
packIsPreviewMode = root?.data?.packIsPreviewMode || root?.data?.isPreviewModeEnabled;
|
|
6533
6533
|
revalidator = useRevalidator();
|
|
6534
6534
|
} catch (error) {
|
|
6535
6535
|
console.error("PackTestRoute router error:", error);
|
|
@@ -6590,7 +6590,13 @@ var usePackLoaderData = () => {
|
|
|
6590
6590
|
revalidator?.revalidate();
|
|
6591
6591
|
}, 750);
|
|
6592
6592
|
}
|
|
6593
|
-
}, [
|
|
6593
|
+
}, [
|
|
6594
|
+
packTestInfo,
|
|
6595
|
+
testExposureCallback,
|
|
6596
|
+
exposedTestInfo,
|
|
6597
|
+
hasUserConsent2,
|
|
6598
|
+
packIsPreviewMode
|
|
6599
|
+
]);
|
|
6594
6600
|
};
|
|
6595
6601
|
var PackTestRoute = () => {
|
|
6596
6602
|
usePackLoaderData();
|