dillon1000/react

Commit

feat: expose installHook with settings argument from react-devtools-core/backend (#30987)

Stacked on https://github.com/facebook/react/pull/30986. 

Previously, we would call `installHook` at a top level of the JavaScript
module. Because of this, having `require` statement for
`react-devtools-core` package was enough to initialize the React
DevTools global hook on the `window`.

Now, the Hook can actually receive an argument - initial user settings
for console patching. We expose this as a function `initialize`, which
can be used by third parties (including React Native) to provide the
persisted settings.

The README was also updated to reflect the changes.
Browse files
Changed paths2 files
First-parent comparison
M packages/react-devtools-core/README.md ModifiedM packages/react-devtools-core/src/backend.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…