We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed40236 commit 9defcd5Copy full SHA for 9defcd5
packages/react-reconciler/src/ReactFiberClassComponent.js
@@ -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);
+ newProps = assign({}, newProps);
1278
}
1279
// Taken from old JSX runtime, where this used to live.
1280
for (const propName in defaultProps) {
0 commit comments