[DevTools] Batch updates when updating component filters (#35093)

This commit is contained in:
Sebastian "Sebbie" Silbermann
2025-11-11 23:20:22 +01:00
committed by GitHub
parent 8c15edd57c
commit 1ea46df8ba

View File

@@ -1576,7 +1576,6 @@ export function attach(
currentRoot = rootInstance;
unmountInstanceRecursively(rootInstance);
rootToFiberInstanceMap.delete(root);
flushPendingEvents();
currentRoot = (null: any);
});
@@ -1646,7 +1645,6 @@ export function attach(
currentRoot = newRoot;
setRootPseudoKey(currentRoot.id, root.current);
mountFiberRecursively(root.current, false);
flushPendingEvents();
currentRoot = (null: any);
});
@@ -5751,11 +5749,12 @@ export function attach(
mountFiberRecursively(root.current, false);
flushPendingEvents();
needsToFlushComponentLogs = false;
currentRoot = (null: any);
});
flushPendingEvents();
needsToFlushComponentLogs = false;
}
}