Remove root.unmount() callback from DevTools code (#17939)

This commit is contained in:
Brian Vaughn
2020-01-30 09:36:43 -08:00
committed by GitHub
parent e98797f7b9
commit d2ae77d0e4

View File

@@ -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();
});
},
);