zakeke-configurator-react 0.0.187 → 0.0.188

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -67449,8 +67449,15 @@ var Boot = function Boot(_ref) {
67449
67449
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
67450
67450
  var query = qs__WEBPACK_IMPORTED_MODULE_0___default().parse(window.location.search);
67451
67451
  if (parameters) {
67452
- console.log('Loading parameters from boot parameters prop...');
67453
- boot(parameters);
67452
+ var _stateRef$current8;
67453
+ if (!((_stateRef$current8 = stateRef.current) !== null && _stateRef$current8 !== void 0 && _stateRef$current8.state.parametersReceived)) {
67454
+ var _stateRef$current9;
67455
+ console.log('Loading parameters from boot parameters prop...');
67456
+ boot(parameters);
67457
+ (_stateRef$current9 = stateRef.current) === null || _stateRef$current9 === void 0 ? void 0 : _stateRef$current9.dispatch({
67458
+ type: 'PARAMETERS_RECEIVED'
67459
+ });
67460
+ }
67454
67461
  } else if (query && query.ecommerce && query.ecommerce == 'preview') {
67455
67462
  console.log('Loading parameters from query string...');
67456
67463
  boot(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zakeke-configurator-react",
3
- "version": "0.0.187",
3
+ "version": "0.0.188",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/declarations/composer/Module/src/index.d.ts",