rfcs icon indicating copy to clipboard operation
rfcs copied to clipboard

RFC: Global object to expose react internals like `__REACT_DEVTOOLS_GLOBAL_HOOK__`

Open adriancuadrado opened this issue 7 months ago • 0 comments

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.

adriancuadrado avatar Aug 12 '25 04:08 adriancuadrado