zakeke-configurator-react 0.0.57 → 0.0.58
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 +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -44293,13 +44293,14 @@ var __generator = (undefined && undefined.__generator) || function (thisArg, bod
|
|
|
44293
44293
|
// Handle boot when provider is ready
|
|
44294
44294
|
var Boot = function (_a) {
|
|
44295
44295
|
var children = _a.children;
|
|
44296
|
-
var
|
|
44296
|
+
var internalState = Object(___WEBPACK_IMPORTED_MODULE_2__["useInternalState"])();
|
|
44297
|
+
var stateRef = Object(react__WEBPACK_IMPORTED_MODULE_1__["useRef"])(internalState);
|
|
44298
|
+
stateRef.current = internalState;
|
|
44297
44299
|
var boot = Object(react__WEBPACK_IMPORTED_MODULE_1__["useCallback"])(function (parameters) { return __awaiter(void 0, void 0, void 0, function () {
|
|
44298
44300
|
var _a, _b, _c, _d;
|
|
44299
44301
|
return __generator(this, function (_e) {
|
|
44300
44302
|
switch (_e.label) {
|
|
44301
44303
|
case 0:
|
|
44302
|
-
console.log("boot", parameters);
|
|
44303
44304
|
(_a = stateRef.current) === null || _a === void 0 ? void 0 : _a.dispatch({ type: 'IS_SCENE_LOADING', isLoading: true });
|
|
44304
44305
|
// Register to environment changes
|
|
44305
44306
|
(_b = stateRef.current) === null || _b === void 0 ? void 0 : _b.state.environment.on('change', function () { var _a; return (_a = stateRef.current) === null || _a === void 0 ? void 0 : _a.dispatch({ type: 'UPDATE' }); });
|