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 6cf1cf4 commit 47761f1Copy full SHA for 47761f1
packages/react-reconciler/src/ReactFiberCommitWork.old.js
@@ -1227,7 +1227,7 @@ export function detachFiberAfterEffects(
1227
if (fiber.sibling && recurseIntoSibbling === true) {
1228
detachFiberAfterEffects(fiber.sibling, true);
1229
}
1230
- if (fiber.stateNode) {
+ if (fiber.tag === HostComponent && fiber.stateNode) {
1231
unmountNode(fiber.stateNode);
1232
1233
fiber.return = null;
0 commit comments