MCPcopy Index your code
hub / github.com/deeppatel234/react-context-devtool

github.com/deeppatel234/react-context-devtool @v4.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v4.0 ↗ · + Follow
67 symbols 158 edges 40 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Devtool for React Context and useReducer Hook

License: MIT NPM Download NPM

Installation

Set Display names

Display name for Context API

  • set dispayName props in Provider
<MyContext.Provider value={{ a: 'hello', b: 'world' }} displayName="Context Display Name">
  <YourComponent />
</MyContext.Provider>

or

  • assign display name in Context
  MyContext.displayName = "Context Display Name";

Display name for useReducer

  • reducer function name is use as displayName in debug

Settings

  • Chrome : right click on react-context-devtool icon and click on "Options"
  • Firefox : right click on react-context-devtool icon and click on "Manage Extenstion" and select "Preferences" tab
Name Type Default Description
Start Debugging On Extensions Load true Start data capturing after extenstion is opened in dev panel (recommended)
On Page Load false Start data capturing after page load
Enable Debug useReducer true enable/disable useReducer debug. Available only in development mode
Context true enable/disable context debug

Troubleshooting

"React is not found in this page" when using NextJS

This extension requires React Developer Tools installed on your browser to work. Try to install the extension and restart the browser to fix it.

License

MIT


Cross-browser testing provided by Browserstack.

Core symbols most depended-on inside this repo

getSettings
called by 4
extension/core/background/utils.js
onCommitFiberRoot
called by 3
extension/core/mainContent/dataProcess.js
onDispatch
called by 2
src/containers/UseReducerView/index.js
getCurrentTab
called by 2
extension/core/background/utils.js
saveCatchData
called by 2
extension/core/background/contextData.js
removeCatchData
called by 2
extension/core/background/contextData.js
startBuild
called by 1
browser/firefox/build.js
startBuild
called by 1
browser/chrome/build.js

Shape

Function 62
Class 3
Method 2

Languages

TypeScript100%

Modules by API surface

extension/core/mainContent/dataProcess.js12 symbols
example/ssr/pages/index.js7 symbols
extension/core/mainContent/index.js6 symbols
src/containers/Settings/index.js5 symbols
example/csr/src/App.js4 symbols
src/popup.index.js3 symbols
src/devpanel.index.js3 symbols
src/containers/UseReducerView/index.js3 symbols
src/containers/UseReducerView/Dispatcher/index.js3 symbols
extension/core/background/utils.js3 symbols
src/containers/ContextView/index.js2 symbols
src/components/ButtonGroup/index.js2 symbols

For agents

$ claude mcp add react-context-devtool \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact