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 2e55e86 commit 421e862Copy full SHA for 421e862
packages/react-devtools-shared/src/backend/renderer.js
@@ -1140,6 +1140,13 @@ export function attach(
1140
1141
untrackFibersSet.add(fiber);
1142
1143
+ // React may detach alternate pointers during unmount;
1144
+ // Since our untracking code is async, we should explicily track the pending alternate here as well.
1145
+ const alternate = fiber.alternate;
1146
+ if (alternate !== null) {
1147
+ untrackFibersSet.add(alternate);
1148
+ }
1149
+
1150
if (untrackFibersTimeoutID === null) {
1151
untrackFibersTimeoutID = setTimeout(untrackFibers, 1000);
1152
}
0 commit comments