Skip to content

Commit 9defcd5

Browse files
authored
Remove redundant props assign (#28829)
1 parent ed40236 commit 9defcd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/react-reconciler/src/ReactFiberClassComponent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ export function resolveClassComponentProps(
12741274
// We may have already copied the props object above to remove ref. If so,
12751275
// we can modify that. Otherwise, copy the props object with Object.assign.
12761276
if (newProps === baseProps) {
1277-
newProps = assign({}, newProps, baseProps);
1277+
newProps = assign({}, newProps);
12781278
}
12791279
// Taken from old JSX runtime, where this used to live.
12801280
for (const propName in defaultProps) {

0 commit comments

Comments
 (0)