redux-devtools/packages/redux-devtools-inspector
Nathan Bierema f4405ac0f0 Publish
- d3-state-visualizer@1.3.4
 - devui@1.0.0-6
 - react-base16-styling@0.8.0
 - react-dock@0.3.0
 - react-json-tree@0.13.0
 - redux-devtools-chart-monitor@1.7.2
 - redux-devtools-cli@1.0.0-4
 - redux-devtools-core@1.0.0-4
 - redux-devtools-dock-monitor@1.2.0
 - redux-devtools-inspector@0.14.0
 - redux-devtools-instrument@1.10.0
 - redux-devtools-log-monitor@2.1.0
 - redux-devtools-serialize@0.2.0
 - redux-devtools-slider-monitor@2.0.0-5
 - redux-devtools-test-generator@0.6.2
 - redux-devtools-trace-monitor@0.1.3
 - redux-devtools@3.7.0
 - d3-state-visualizer-tree-example@0.0.2
 - react-json-tree-example@1.1.0
 - slider-todomvc@0.0.2
 - counter-redux@0.1.0
 - todomvc@0.1.0
2020-09-07 12:44:15 -04:00
..
demo feat(redux-devtools-inspector): convert to TypeScript (#623) 2020-08-30 17:49:06 -04:00
src feat(redux-devtools-inspector): convert to TypeScript (#623) 2020-08-30 17:49:06 -04:00
.babelrc feat(redux-devtools-inspector): convert to TypeScript (#623) 2020-08-30 17:49:06 -04:00
.eslintignore feat(redux-devtools-inspector): convert to TypeScript (#623) 2020-08-30 17:49:06 -04:00
.eslintrc.js feat(redux-devtools-inspector): convert to TypeScript (#623) 2020-08-30 17:49:06 -04:00
CHANGELOG.md Publish 2020-09-07 12:44:15 -04:00
demo.gif Move redux-devtools-inspector package (#429) 2018-12-22 02:10:49 +02:00
jest.config.js feat(redux-devtools-inspector): convert to TypeScript (#623) 2020-08-30 17:49:06 -04:00
LICENSE.md chore(*): add back license files (#578) 2020-08-09 01:11:43 -04:00
package.json Publish 2020-09-07 12:44:15 -04:00
README.md Use prettier 2019-01-10 20:51:14 +02:00
tsconfig.json feat(redux-devtools-inspector): convert to TypeScript (#623) 2020-08-30 17:49:06 -04:00

redux-devtools-inspector

npm version

A state monitor for Redux DevTools that provides a convenient way to inspect "real world" app states that could be complicated and deeply nested. Created by @alexkuz and merged from alexkuz/redux-devtools-inspector into reduxjs/redux-devtools monorepo.

Installation

npm install --save-dev redux-devtools-inspector

Usage

You can use Inspector as the only monitor in your app:

containers/DevTools.js
import React from 'react';
import { createDevTools } from 'redux-devtools';
import Inspector from 'redux-devtools-inspector';

export default createDevTools(<Inspector />);

Then you can render <DevTools> to any place inside app or even into a separate popup window.

Alternative, you can use it together with DockMonitor to make it dockable.
Consult the DockMonitor README for details of this approach.

Read how to start using Redux DevTools.

Features

The inspector displays a list of actions and a preview panel which shows the state after the selected action and a diff with the previous state. If no actions are selected, the last state is shown.

You may pin a certain part of the state to only track its changes.

Props

Name Type Description
theme Object or string Contains either base16 theme name or object, that can be base16 colors map or object containing classnames or styles.
invertTheme Boolean Inverts theme color luminance, making light theme out of dark theme and vice versa.
supportImmutable Boolean Better Immutable rendering in Diff (can affect performance if state has huge objects/arrays). false by default.
tabs Array or function Overrides list of tabs (see below)
diffObjectHash Function Optional callback for better array handling in diffs (see jsondiffpatch docs)
diffPropertyFilter Function Optional callback for ignoring particular props in diff (see jsondiffpatch docs)

If tabs is a function, it receives a list of default tabs and should return updated list, for example:

defaultTabs => [...defaultTabs, { name: 'My Tab', component: MyTab }]

If tabs is an array, only provided tabs are rendered.

component is provided with action and other props, see ActionPreview.jsx for reference.

Usage example: redux-devtools-test-generator.

License

MIT