redux-devtools/packages/redux-devtools
Nathan Bierema faff0db47b Publish
- remotedev-redux-devtools-extension@3.0.0-rc.1
 - d3-state-visualizer@1.4.1
 - d3tooltip@1.3.1
 - map2tree@1.5.1
 - react-base16-styling@0.8.1
 - react-dock@0.4.1
 - react-json-tree@0.15.1
 - @redux-devtools/app@1.0.0-9
 - @redux-devtools/chart-monitor@1.9.1
 - @redux-devtools/cli@1.0.0-10
 - @redux-devtools/dock-monitor@1.4.1
 - @redux-devtools/extension@3.0.0-rc.1
 - @redux-devtools/inspector-monitor-test-tab@0.7.3
 - @redux-devtools/inspector-monitor-trace-tab@0.2.3
 - @redux-devtools/inspector-monitor@1.0.1
 - @redux-devtools/instrument@1.11.1
 - @redux-devtools/log-monitor@2.3.1
 - @redux-devtools/remote@0.6.0
 - @redux-devtools/rtk-query-monitor@1.0.1
 - @redux-devtools/serialize@0.3.1
 - @redux-devtools/slider-monitor@2.0.0-9
 - @redux-devtools/ui@1.0.0-10
 - @redux-devtools/utils@1.0.0-7
 - @redux-devtools/core@3.9.1
 - d3-state-visualizer-tree-example@0.1.1
 - react-dock-demo@0.1.1
 - react-json-tree-example@1.1.3
 - test-demo@0.1.1
 - inspector-demo@0.1.1
 - rtk-query-demo@0.1.1
 - slider-todomvc@0.1.3
 - counter-redux@0.1.3
 - todomvc@0.2.2
2021-11-06 13:44:49 -04:00
..
examples Publish 2021-11-06 13:44:49 -04:00
src chore(deps): update typescript-eslint monorepo to v5 (major) (#907) 2021-10-21 19:08:35 +00:00
test chore(*): upgrade to TypeScript 4.0 (#736) 2021-06-16 12:20:20 -04:00
.babelrc chore(*): clean up babel configs (#816) 2021-08-29 23:25:48 +00:00
.eslintignore feature(redux-devtools): convert to TypeScript (#605) 2020-08-22 20:16:16 -04:00
.eslintrc.js chore(*): move devDependencies back to packages (#870) 2021-09-18 23:47:03 +00:00
CHANGELOG.md chore(*): run prettier 2021-03-06 10:51:16 -05:00
jest.config.js feature(redux-devtools): convert to TypeScript (#605) 2020-08-22 20:16:16 -04:00
LICENSE.md Move redux-devtools to packages 2018-12-02 23:22:37 +02:00
package.json Publish 2021-11-06 13:44:49 -04:00
README.md chore(*): remove Travis (#864) 2021-09-17 15:02:33 +00:00
tsconfig.json feature(redux-devtools): convert to TypeScript (#605) 2020-08-22 20:16:16 -04:00

Redux DevTools

A live-editing time travel environment for Redux.
See Dan's React Europe talk demoing it!

Note that the implemention in this repository is different from Redux DevTools Extension. Please refer to the latter for browser extension.

Table of Contents

npm version npm downloads redux channel on discord

Features

  • Lets you inspect every state and action payload
  • Lets you go back in time by “cancelling” actions
  • If you change the reducer code, each “staged” action will be re-evaluated
  • If the reducers throw, you will see during which action this happened, and what the error was
  • With persistState() store enhancer, you can persist debug sessions across page reloads

Overview

Redux DevTools is a development time package that provides power-ups for your Redux development workflow. Be careful to strip its code in production (see walkthrough for instructions)! To use Redux DevTools, you need to choose a “monitor”—a React component that will serve as a UI for the DevTools. Different tasks and workflows require different UIs, so Redux DevTools is built to be flexible in this regard. We recommend using LogMonitor for inspecting the state and time travel, and wrap it in a DockMonitor to quickly move it across the screen. That said, when youre comfortable rolling up your own setup, feel free to do this, and share it with us.

If you came here looking for what do the “Reset”, “Revert”, “Sweep” or “Commit” buttons do, check out the LogMonitor documentation.

Browser Extension

If you dont want to bother with installing Redux DevTools and integrating it into your project, consider using Redux DevTools Extension for Chrome and Firefox. It provides access to the most popular monitors, is easy to configure to filter actions, and doesnt require installing any packages.

Setup Instructions

Read the installation walkthrough for integration instructions and usage examples (<DevTools> component, DevTools.instrument(), exclude from production builds, gotchas).

Running Examples

Clone the project:

git clone https://github.com/reduxjs/redux-devtools.git
cd redux-devtools/packages/redux-devtools

Run npm install in the package folder:

npm install

Now you can open an example folder and run npm install there:

cd examples/counter # or examples/todomvc
npm install

Finally, run the development server and open the page:

npm start
open http://localhost:3000

Try clicking on actions in the log, or changing some code inside the reducers. You should see the action log re-evaluate the state on every code change.

Also try opening http://localhost:3000/?debug_session=123, click around, and then refresh. You should see that all actions have been restored from the local storage.

Custom Monitors

DevTools accepts monitor components so you can build a completely custom UI. LogMonitor and DockMonitor are just examples of what is possible.

I challenge you to build a custom monitor for Redux DevTools!

Some crazy ideas for custom monitors:

  • A slider that lets you jump between computed states just by dragging it
  • An in-app layer that shows the last N states right in the app (e.g. for animation)
  • A time machine like interface where the last N states of your app reside on different Z layers
  • Feel free to come up with and implement your own! Check LogMonitor propTypes to see what you can do.

In fact some of these are implemented already:

Slider Monitor

Inspector Monitor

Diff Monitor

Filterable Log Monitor

redux-devtools-filterable-log-monitor

Chart Monitor

redux-devtools-chart-monitor

Filter Actions

(Does not have a UI but can wrap any other monitor)

Dispatch

redux-devtools-dispatch

Redux Usage Report

redux-usage-report

Keep them coming!

Create a PR to add your custom monitor.

License

MIT