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[react-devtools]: request hook initialization inside http server response #31102

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

hoxyq
Copy link
Contributor

@hoxyq hoxyq commented Sep 30, 2024

Fixes #31100.

There are 2 things:

  1. In feat: expose installHook with settings argument from react-devtools-core/backend #30987, we've introduced a breaking change: importing react-devtools-core is no longer enough for installing React DevTools global Hook. You need to call initialize, in which you may provide initial settings. I am not adding settings here, because it is not implemented, and there are no plans for supporting this.
  2. Calling installHook is not necessary inside standalone.js, because this script is running inside Electron wrapper (which is just a UI, not the app that we are debugging). We will loose the ability to use React DevTools on this React application, but I guess thats fine.

Copy link

vercel bot commented Sep 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 30, 2024 5:22pm

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.

[DevTools Bug]: Script tag connection method not working in 6.0.0
3 participants