Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexkuz/redux-devtools-inspector
Another Redux DevTools Monitor
https://github.com/alexkuz/redux-devtools-inspector
Last synced: 13 days ago
JSON representation
Another Redux DevTools Monitor
- Host: GitHub
- URL: https://github.com/alexkuz/redux-devtools-inspector
- Owner: alexkuz
- License: mit
- Archived: true
- Created: 2016-02-19T10:11:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-22T00:45:12.000Z (almost 6 years ago)
- Last Synced: 2024-10-11T02:49:18.831Z (29 days ago)
- Language: JavaScript
- Homepage: http://alexkuz.github.io/redux-devtools-inspector/
- Size: 5.98 MB
- Stars: 237
- Watchers: 6
- Forks: 46
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-react-components-all - redux-devtools-inspector - Another Redux DevTools Monitor. (Uncategorized / Uncategorized)
- awesome-react-components - redux-devtools-inspector - Another Redux DevTools Monitor. (Dev Tools / Redux)
- awesome-list - redux-devtools-inspector - Another Redux DevTools Monitor. (Dev Tools / Redux)
- awesome-react-components - redux-devtools-inspector - Another Redux DevTools Monitor. (Dev Tools / Redux)
- awesome-react-components - redux-devtools-inspector - Another Redux DevTools Monitor. (Dev Tools / Redux)
- awesome-react-components - redux-devtools-inspector - Another Redux DevTools Monitor. (Dev Tools / Redux)
- fucking-awesome-react-components - redux-devtools-inspector - Another Redux DevTools Monitor. (Dev Tools / Redux)
- awesome-redux - redux-devtools-inspector - Another Redux DevTools Monitor. (Dev tools / Inspection tools / Side Effects)
README
# redux-devtools-inspector
[![npm version](https://badge.fury.io/js/redux-devtools-inspector.svg)](https://badge.fury.io/js/redux-devtools-inspector)
>This package was merged into [`redux-devtools` monorepo](https://github.com/reduxjs/redux-devtools). Please refer to that repository for the latest updates, issues and pull requests.
A state monitor for [Redux DevTools](https://github.com/gaearon/redux-devtools) that provides a convenient way to inspect "real world" app states that could be complicated and deeply nested.
![](https://raw.githubusercontent.com/alexkuz/redux-devtools-inspector/master/demo.gif)
### Installation
```
npm install --save-dev redux-devtools-inspector
```### Usage
You can use `Inspector` as the only monitor in your app:
##### `containers/DevTools.js`
```js
import React from 'react';
import { createDevTools } from 'redux-devtools';
import Inspector from 'redux-devtools-inspector';export default createDevTools(
);
```Then you can render `` to any place inside app or even into a separate popup window.
Alternative, you can use it together with [`DockMonitor`](https://github.com/gaearon/redux-devtools-dock-monitor) to make it dockable.
Consult the [`DockMonitor` README](https://github.com/gaearon/redux-devtools-dock-monitor) for details of this approach.[Read how to start using Redux DevTools.](https://github.com/gaearon/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](https://github.com/chriskempson/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](https://github.com/benjamine/jsondiffpatch/blob/master/docs/arrays.md))
`diffPropertyFilter` | Function | Optional callback for ignoring particular props in diff (see [jsondiffpatch docs](https://github.com/benjamine/jsondiffpatch#options))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`](src/ActionPreview.jsx#L42) for reference.
Usage example: [`redux-devtools-test-generator`](https://github.com/zalmoxisus/redux-devtools-test-generator#containersdevtoolsjs).
### License
MIT