@pack/hydrogen 2.0.1 → 2.0.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/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6540,6 +6540,7 @@ var usePackLoaderData = () => {
|
|
|
6540
6540
|
packIsPreviewMode = root?.data?.packIsPreviewMode;
|
|
6541
6541
|
revalidator = useRevalidator();
|
|
6542
6542
|
} catch (error) {
|
|
6543
|
+
console.error("PackTestRoute router error:", error);
|
|
6543
6544
|
packTestInfo = void 0;
|
|
6544
6545
|
packIsPreviewMode = void 0;
|
|
6545
6546
|
revalidator = void 0;
|
|
@@ -6593,7 +6594,9 @@ var usePackLoaderData = () => {
|
|
|
6593
6594
|
}
|
|
6594
6595
|
});
|
|
6595
6596
|
testExposureCallback?.({ ...packTestInfo, exposureTime: Date.now() });
|
|
6596
|
-
|
|
6597
|
+
setTimeout(() => {
|
|
6598
|
+
revalidator?.revalidate();
|
|
6599
|
+
}, 750);
|
|
6597
6600
|
}
|
|
6598
6601
|
}, [packTestInfo, testExposureCallback, exposedTestInfo, hasUserConsent2]);
|
|
6599
6602
|
};
|