Skip to content

Commit

Permalink
Remove root.unmount() callback from DevTools code (#17939)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Jan 30, 2020
1 parent e98797f commit d2ae77d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/react-devtools-extensions/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
},
);
Expand Down

0 comments on commit d2ae77d

Please sign in to comment.