Skip to content

RFC: Global object to expose react internals like __REACT_DEVTOOLS_GLOBAL_HOOK__ #267

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

adriancuadrado
Copy link

The idea is to offer an API that developers can actually rely on instead of __REACT_DEVTOOLS_GLOBAL_HOOK__ so we can develop tools that interact with the state of some components externally like React Devtools does, but in a safer way. Or to force rerenders or remounting, depending on what we expose in this api.

Currently you can use bippy, but it has this warning in its README:

Warning

⚠️⚠️⚠️ this project may break production apps and cause unexpected behavior ⚠️⚠️⚠️

this project uses react internals, which can change at any time. it is not recommended to depend on internals unless you really, really have to. by proceeding, you acknowledge the risk of breaking your own code or apps that use your code.

@meta-cla meta-cla bot added the CLA Signed label Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant