@plasmicapp/loader-react 1.0.126 → 1.0.127
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/loader-react.cjs.development.js +13 -4
- package/dist/loader-react.cjs.development.js.map +1 -1
- package/dist/loader-react.cjs.production.min.js +1 -1
- package/dist/loader-react.cjs.production.min.js.map +1 -1
- package/dist/loader-react.esm.js +13 -4
- package/dist/loader-react.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -2467,7 +2467,7 @@ function extractPlasmicQueryData(_x) {
|
|
|
2467
2467
|
|
|
2468
2468
|
function _extractPlasmicQueryData() {
|
|
2469
2469
|
_extractPlasmicQueryData = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(element) {
|
|
2470
|
-
var cache;
|
|
2470
|
+
var cache, queryCache;
|
|
2471
2471
|
return runtime_1.wrap(function _callee$(_context) {
|
|
2472
2472
|
while (1) {
|
|
2473
2473
|
switch (_context.prev = _context.next) {
|
|
@@ -2489,18 +2489,27 @@ function _extractPlasmicQueryData() {
|
|
|
2489
2489
|
console.warn("PLASMIC: Error encountered while pre-rendering", _context.t0);
|
|
2490
2490
|
|
|
2491
2491
|
case 9:
|
|
2492
|
-
|
|
2492
|
+
queryCache = Object.fromEntries(Array.from(cache.entries()).filter(function (_ref3) {
|
|
2493
2493
|
var key = _ref3[0],
|
|
2494
2494
|
val = _ref3[1];
|
|
2495
2495
|
return !key.startsWith('$swr$') && val !== undefined;
|
|
2496
|
+
}));
|
|
2497
|
+
_context.prev = 10;
|
|
2498
|
+
return _context.abrupt("return", JSON.parse(JSON.stringify(queryCache, function (key, value) {
|
|
2499
|
+
return value !== undefined ? value : null;
|
|
2496
2500
|
})));
|
|
2497
2501
|
|
|
2498
|
-
case
|
|
2502
|
+
case 14:
|
|
2503
|
+
_context.prev = 14;
|
|
2504
|
+
_context.t1 = _context["catch"](10);
|
|
2505
|
+
return _context.abrupt("return", queryCache);
|
|
2506
|
+
|
|
2507
|
+
case 17:
|
|
2499
2508
|
case "end":
|
|
2500
2509
|
return _context.stop();
|
|
2501
2510
|
}
|
|
2502
2511
|
}
|
|
2503
|
-
}, _callee, null, [[1, 6]]);
|
|
2512
|
+
}, _callee, null, [[1, 6], [10, 14]]);
|
|
2504
2513
|
}));
|
|
2505
2514
|
return _extractPlasmicQueryData.apply(this, arguments);
|
|
2506
2515
|
}
|