dillon1000/react

Commit

fix[devtools/extension]: handle tab navigation events before react is loaded (#27316)

This is mostly hotfix for https://github.com/facebook/react/pull/27215.

Contains 3 fixes:
- Handle cases when `react` is not loaded yet and user performs in-tab
navigation. Previously, because of the uncleared interval we would try
to mount DevTools twice, resulting into multiple errors.
- Handle case when extension port disconnected (probably by the browser
or just due to its lifetime)
- Removed duplicate `render()` call on line 327
Browse files
Changed paths2 files
First-parent comparison
M packages/react-devtools-extensions/src/background/index.js ModifiedM packages/react-devtools-extensions/src/main/index.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…