Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

hoxyq
Copy link
Contributor

@hoxyq hoxyq commented Aug 30, 2023

This is mostly hotfix for #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

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Aug 30, 2023
@hoxyq hoxyq merged commit 29b405b into facebook:main Aug 30, 2023
2 checks passed
@hoxyq hoxyq deleted the devtools/handle-tab-navigation-before-react-is-loaded branch August 30, 2023 18:31
hoxyq added a commit that referenced this pull request Aug 30, 2023
List of changes:
* fix[devtools/extension]: handle tab navigation events before react is
loaded ([hoxyq](https://github.com/hoxyq) in
[#27316](#27316))
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
… loaded (facebook#27316)

This is mostly hotfix for facebook#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
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
List of changes:
* fix[devtools/extension]: handle tab navigation events before react is
loaded ([hoxyq](https://github.com/hoxyq) in
[facebook#27316](facebook#27316))
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
… loaded (#27316)

This is mostly hotfix for #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

DiffTrain build for commit 29b405b.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants