@plasmicapp/loader-react 1.0.88 → 1.0.92

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.
@@ -2241,13 +2241,11 @@ function _extractPlasmicQueryData() {
2241
2241
  while (1) {
2242
2242
  switch (_context.prev = _context.next) {
2243
2243
  case 0:
2244
- cache = {};
2244
+ cache = new Map();
2245
2245
  _context.prev = 1;
2246
2246
  _context.next = 4;
2247
- return plasmicPrepass(React__default.createElement(PlasmicQuery.PrepassContext.Provider, {
2248
- value: {
2249
- cache: cache
2250
- }
2247
+ return plasmicPrepass(React__default.createElement(PlasmicQuery.PlasmicPrepassContext, {
2248
+ cache: cache
2251
2249
  }, element));
2252
2250
 
2253
2251
  case 4:
@@ -2260,13 +2258,10 @@ function _extractPlasmicQueryData() {
2260
2258
  console.warn("PLASMIC: Error encountered while pre-rendering", _context.t0);
2261
2259
 
2262
2260
  case 9:
2263
- return _context.abrupt("return", Object.fromEntries(Array.from(Object.entries(cache)).map(function (_ref3) {
2261
+ return _context.abrupt("return", Object.fromEntries(Array.from(cache.entries()).filter(function (_ref3) {
2264
2262
  var key = _ref3[0],
2265
- data = _ref3[1].data;
2266
- return [key, data];
2267
- }).filter(function (_ref4) {
2268
- var data = _ref4[1];
2269
- return !!data;
2263
+ val = _ref3[1];
2264
+ return !key.startsWith('$swr$') && val !== undefined;
2270
2265
  })));
2271
2266
 
2272
2267
  case 10: