Skip to content

Commit

Permalink
Remove redundant props assign (#28829)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored Apr 12, 2024
1 parent ed40236 commit 9defcd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberClassComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@ export function resolveClassComponentProps(
// We may have already copied the props object above to remove ref. If so,
// we can modify that. Otherwise, copy the props object with Object.assign.
if (newProps === baseProps) {
newProps = assign({}, newProps, baseProps);
newProps = assign({}, newProps);
}
// Taken from old JSX runtime, where this used to live.
for (const propName in defaultProps) {
Expand Down

0 comments on commit 9defcd5

Please sign in to comment.