dillon1000/react
Commit
Browse files [DevTools] Extract getDispatcherRef and fork inspectHooks() to avoid pulling React into the build artifact (#36681)
This is just a refactor to unblock the work on the Facade. This PR contains 2 changes: 1. `getDispatcherRef` was extracted from `fiber/renderer` into its own shared module. 2. `inspectHooksOfFiber` was forked. The new version specifies dispatcher as required and doesn't set it to default as `ReactSharedInternals`, which are pulling the whole `react` module as part of them: https://github.com/facebook/react/blob/63e95c2b51d9e9b8b9e15d656c1e11c393277699/packages/shared/ReactSharedInternals.js#L10-L15
Changed paths4 files
First-parent comparisonpackages/react-debug-tools/src/ReactDebugHooks.js ModifiedM packages/react-debug-tools/src/ReactDebugTools.js ModifiedM packages/react-devtools-shared/src/backend/fiber/renderer.js ModifiedA packages/react-devtools-shared/src/backend/shared/DevToolsReactDispatcher.js AddedPatch
Files changed
Rendering syntax-highlighted changes…