[DevTools] Batch updates when updating component filters (#35093)
Sebastian "Sebbie" Silbermann committed
Nov 11, 2025 at 23:20 UTC
1ea46df8ba9d7d90a13c8668c2642cb21a259aa5
1 file changed
+4
-5
packages/react-devtools-shared/src/backend/fiber/renderer.js
+4
-5
@@ -1576,7 +1576,6 @@ export function attach(
1576
currentRoot = rootInstance;
1577
unmountInstanceRecursively(rootInstance);
1578
rootToFiberInstanceMap.delete(root);
1579
- flushPendingEvents();
1579
currentRoot = (null: any);
1580
});
1581
@@ -1646,7 +1645,6 @@ export function attach(
1645
currentRoot = newRoot;
1646
setRootPseudoKey(currentRoot.id, root.current);
1647
mountFiberRecursively(root.current, false);
1649
- flushPendingEvents();
1648
currentRoot = (null: any);
1649
});
1650
@@ -5751,11 +5749,12 @@ export function attach(
5749
5750
mountFiberRecursively(root.current, false);
5751
5754
- flushPendingEvents();
5755
-
5756
- needsToFlushComponentLogs = false;
5752
currentRoot = (null: any);
5753
});
5754
+
5755
+ flushPendingEvents();
5756
+
5757
+ needsToFlushComponentLogs = false;
5758
}
5759
}
5760