@plasmicapp/loader-react 1.0.49 → 1.0.50

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.
@@ -2199,11 +2199,7 @@ function _extractPlasmicQueryData() {
2199
2199
  cache = {};
2200
2200
  _context.prev = 1;
2201
2201
  _context.next = 4;
2202
- return plasmicPrepass(React__default.createElement(query.PrepassContext.Provider, {
2203
- value: {
2204
- cache: cache
2205
- }
2206
- }, element));
2202
+ return plasmicPrepass(element, cache);
2207
2203
 
2208
2204
  case 4:
2209
2205
  _context.next = 9;
@@ -2234,7 +2230,7 @@ function _extractPlasmicQueryData() {
2234
2230
  return _extractPlasmicQueryData.apply(this, arguments);
2235
2231
  }
2236
2232
 
2237
- function plasmicPrepass(_x2) {
2233
+ function plasmicPrepass(_x2, _x3) {
2238
2234
  return _plasmicPrepass.apply(this, arguments);
2239
2235
  }
2240
2236
  /**
@@ -2245,13 +2241,17 @@ function plasmicPrepass(_x2) {
2245
2241
  */
2246
2242
 
2247
2243
  function _plasmicPrepass() {
2248
- _plasmicPrepass = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(element) {
2244
+ _plasmicPrepass = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(element, plasmicCache) {
2249
2245
  return runtime_1.wrap(function _callee2$(_context2) {
2250
2246
  while (1) {
2251
2247
  switch (_context2.prev = _context2.next) {
2252
2248
  case 0:
2253
2249
  _context2.next = 2;
2254
- return prepass(buildPlasmicPrepassElement(element));
2250
+ return prepass(React__default.createElement(query.PrepassContext.Provider, {
2251
+ value: {
2252
+ cache: plasmicCache != null ? plasmicCache : {}
2253
+ }
2254
+ }, buildPlasmicPrepassElement(element)));
2255
2255
 
2256
2256
  case 2:
2257
2257
  case "end":