@samitouri / QOS-React / commits / 9defcd56bc

Remove redundant props assign (#28829)

Sebastian Silbermann committed Apr 12, 2024 at 21:55 UTC 9defcd56bc3cd53ac2901ed93f29218007010434
1 file changed +1 -1
packages/react-reconciler/src/ReactFiberClassComponent.js
+1 -1
@@ -1274,7 +1274,7 @@ export function resolveClassComponentProps(
1274 // We may have already copied the props object above to remove ref. If so,
1275 // we can modify that. Otherwise, copy the props object with Object.assign.
1276 if (newProps === baseProps) {
1277 - newProps = assign({}, newProps, baseProps);
1277 + newProps = assign({}, newProps);
1278 }
1279 // Taken from old JSX runtime, where this used to live.
1280 for (const propName in defaultProps) {