dillon1000/react
Commit
Browse files 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.
Changed paths2 files
First-parent comparisonpackages/react-devtools-core/README.md ModifiedM packages/react-devtools-core/src/backend.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…