@plasmicapp/react-web 0.2.227 → 0.2.228

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.cjs.js CHANGED
@@ -1402,12 +1402,13 @@ var PlasmicLink = React__default['default'].forwardRef(function PlasmicLink(prop
1402
1402
  var _a;
1403
1403
  // The usePlasmicLinkMaybe function may be undefined, if host is not up-to-date
1404
1404
  var Link = (_a = host.usePlasmicLinkMaybe === null || host.usePlasmicLinkMaybe === void 0 ? void 0 : host.usePlasmicLinkMaybe()) !== null && _a !== void 0 ? _a : PlasmicLinkInternal;
1405
- if (Link === PlasmicLink) {
1405
+ if (Link === PlasmicLink || Link === PlasmicLinkInternal) {
1406
1406
  // Just in case, break the cycle
1407
1407
  return React__default['default'].createElement(PlasmicLinkInternal, __assign({}, props, { ref: ref }));
1408
1408
  }
1409
1409
  else {
1410
- return React__default['default'].createElement(Link, __assign({}, props, { ref: ref }));
1410
+ // Don't pass component/platform props to non-PlasmicLinkInternal
1411
+ return React__default['default'].createElement(Link, __assign({}, omit(props, "component", "platform"), { ref: ref }));
1411
1412
  }
1412
1413
  });
1413
1414
  var PlasmicLinkInternal = React__default['default'].forwardRef(function PlasmicLinkInternal(props, ref) {