@ikas/storefront 0.0.71 → 0.0.72
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/build/index.es.js +9 -1
- package/build/index.js +9 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -28270,7 +28270,15 @@ var favoriteProducts = /*#__PURE__*/Object.freeze({
|
|
|
28270
28270
|
var Page$e = function (_a) {
|
|
28271
28271
|
var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings;
|
|
28272
28272
|
var router = useRouter();
|
|
28273
|
-
var
|
|
28273
|
+
var _b = useState(false), isBrowser = _b[0], setIsBrowser = _b[1];
|
|
28274
|
+
var initialPropValues = useMemo(function () { return IkasPageDataProvider.initPropValues(propValuesStr, router); }, [propValuesStr]);
|
|
28275
|
+
var _c = useState(initialPropValues), propValues = _c[0], setPropValues = _c[1];
|
|
28276
|
+
useEffect(function () {
|
|
28277
|
+
setIsBrowser(typeof window !== "undefined");
|
|
28278
|
+
}, []);
|
|
28279
|
+
useEffect(function () {
|
|
28280
|
+
setPropValues(IkasPageDataProvider.initPropValues(propValuesStr, router, isBrowser));
|
|
28281
|
+
}, [isBrowser, propValuesStr]);
|
|
28274
28282
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
|
|
28275
28283
|
};
|
|
28276
28284
|
var getStaticProps$c = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
package/build/index.js
CHANGED
|
@@ -28250,7 +28250,15 @@ var favoriteProducts = /*#__PURE__*/Object.freeze({
|
|
|
28250
28250
|
var Page$e = function (_a) {
|
|
28251
28251
|
var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings;
|
|
28252
28252
|
var router$1 = router.useRouter();
|
|
28253
|
-
var
|
|
28253
|
+
var _b = React.useState(false), isBrowser = _b[0], setIsBrowser = _b[1];
|
|
28254
|
+
var initialPropValues = React.useMemo(function () { return IkasPageDataProvider.initPropValues(propValuesStr, router$1); }, [propValuesStr]);
|
|
28255
|
+
var _c = React.useState(initialPropValues), propValues = _c[0], setPropValues = _c[1];
|
|
28256
|
+
React.useEffect(function () {
|
|
28257
|
+
setIsBrowser(typeof window !== "undefined");
|
|
28258
|
+
}, []);
|
|
28259
|
+
React.useEffect(function () {
|
|
28260
|
+
setPropValues(IkasPageDataProvider.initPropValues(propValuesStr, router$1, isBrowser));
|
|
28261
|
+
}, [isBrowser, propValuesStr]);
|
|
28254
28262
|
return (React.createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
|
|
28255
28263
|
};
|
|
28256
28264
|
var getStaticProps$c = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|