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 26c716f commit 4e984ffCopy full SHA for 4e984ff
packages/react-reconciler/src/ReactFiberBeginWork.js
@@ -856,7 +856,7 @@ function updateClassComponent(
856
);
857
if (__DEV__) {
858
const inst = workInProgress.stateNode;
859
- if (inst.props !== nextProps) {
+ if (shouldUpdate && inst.props !== nextProps) {
860
if (!didWarnAboutReassigningProps) {
861
console.error(
862
'It looks like %s is reassigning its own `this.props` while rendering. ' +
packages/react-reconciler/src/ReactFiberClassComponent.js
@@ -1075,7 +1075,6 @@ function updateClassInstance(
1075
workInProgress.effectTag |= Snapshot;
1076
}
1077
1078
- instance.props = workInProgress.memoizedProps = newProps;
1079
return false;
1080
1081
0 commit comments