Files
react/packages/react-devtools-shared
Ruslan LesiutinandGitHub 15794a4907 [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/3f6785f59e8871e232e94276db82b53299a36bb3/packages/shared/ReactSharedInternals.js#L10-L15
2026-06-15 08:27:11 +01:00
..
2025-08-21 11:15:34 -04:00
2022-03-16 11:37:10 -04:00

This directory contains code shared between several DevTools packages:

  • /packages/react-devtools-core
  • /packages/react-devtools-extensions
  • /packages/react-devtools-inline

It is not published or released anywhere directly.