@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.
@@ -1371,12 +1371,13 @@ var PlasmicLink = React__default.forwardRef(function PlasmicLink(props, ref) {
1371
1371
  var _a;
1372
1372
  // The usePlasmicLinkMaybe function may be undefined, if host is not up-to-date
1373
1373
  var Link = (_a = usePlasmicLinkMaybe === null || usePlasmicLinkMaybe === void 0 ? void 0 : usePlasmicLinkMaybe()) !== null && _a !== void 0 ? _a : PlasmicLinkInternal;
1374
- if (Link === PlasmicLink) {
1374
+ if (Link === PlasmicLink || Link === PlasmicLinkInternal) {
1375
1375
  // Just in case, break the cycle
1376
1376
  return React__default.createElement(PlasmicLinkInternal, __assign({}, props, { ref: ref }));
1377
1377
  }
1378
1378
  else {
1379
- return React__default.createElement(Link, __assign({}, props, { ref: ref }));
1379
+ // Don't pass component/platform props to non-PlasmicLinkInternal
1380
+ return React__default.createElement(Link, __assign({}, omit(props, "component", "platform"), { ref: ref }));
1380
1381
  }
1381
1382
  });
1382
1383
  var PlasmicLinkInternal = React__default.forwardRef(function PlasmicLinkInternal(props, ref) {