mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Remove root.unmount() callback from DevTools code (#17939)
This commit is contained in:
@@ -355,11 +355,9 @@ function createPanelIfReactLoaded() {
|
||||
|
||||
// It's easiest to recreate the DevTools panel (to clean up potential stale state).
|
||||
// We can revisit this in the future as a small optimization.
|
||||
flushSync(() => {
|
||||
root.unmount(() => {
|
||||
initBridgeAndStore();
|
||||
});
|
||||
});
|
||||
flushSync(() => root.unmount());
|
||||
|
||||
initBridgeAndStore();
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user