redux-devtools/packages/redux-devtools-inspector-monitor
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
..
demo Publish 2021-11-06 13:44:49 -04:00
src Replace enzyme with React testing library in app and extension (#918) 2021-10-22 14:49:53 +00:00
.babelrc chore(*): clean up babel configs (#816) 2021-08-29 23:25:48 +00:00
.eslintignore chore(inspector): fix example build (#890) 2021-09-25 04:12:30 +00:00
.eslintrc.js chore(*): move devDependencies back to packages (#870) 2021-09-18 23:47:03 +00:00
CHANGELOG.md chore(*): run prettier 2021-06-10 22:50:56 -04:00
demo.gif refactor(redux-devtools-inspector-monitor): rename package (#633) 2020-09-10 12:37:19 -04:00
LICENSE.md refactor(redux-devtools-inspector-monitor): rename package (#633) 2020-09-10 12:37:19 -04:00
package.json Publish 2021-11-06 13:44:49 -04:00
README.md chore(*): make more packages scoped (#692) 2020-12-21 15:46:28 -05:00
tsconfig.json refactor(redux-devtools-inspector-monitor): rename package (#633) 2020-09-10 12:37:19 -04:00

redux-devtools-inspector-monitor

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

yarn add @redux-devtools/inspector-monitor

Usage

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

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

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-inspector-monitor-test-tab.

License

MIT