Skip to content

Commit d465a97

Browse files
committed
Remove superfluous warning
1 parent 1fed15d commit d465a97

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

packages/react-reconciler/src/ReactFiberNewContext.new.js

-8
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,6 @@ export function scheduleContextWorkOnParentPath(
168168
if (node === propagationRoot) {
169169
break;
170170
}
171-
if (__DEV__) {
172-
if (node === propagationRoot.alternate) {
173-
console.error(
174-
'Did not expect to encounter a propagation root alternate when scheduling context work. ' +
175-
'This error is likely caused by a bug in React. Please file an issue.',
176-
);
177-
}
178-
}
179171
node = node.return;
180172
}
181173
if (__DEV__) {

packages/react-reconciler/src/ReactFiberNewContext.old.js

-8
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,6 @@ export function scheduleContextWorkOnParentPath(
168168
if (node === propagationRoot) {
169169
break;
170170
}
171-
if (__DEV__) {
172-
if (node === propagationRoot.alternate) {
173-
console.error(
174-
'Did not expect to encounter a propagation root alternate when scheduling context work. ' +
175-
'This error is likely caused by a bug in React. Please file an issue.',
176-
);
177-
}
178-
}
179171
node = node.return;
180172
}
181173
if (__DEV__) {

0 commit comments

Comments
 (0)