A chart monitor for Redux DevTools.
It shows a real-time view of the store aka the current state of the app.
npm install --save-dev redux-devtools-chart-monitor
You can use ChartMonitor
as the only monitor in your app:
import React from 'react';
import { createDevTools } from 'redux-devtools';
import ChartMonitor from 'redux-devtools-chart-monitor';
export default createDevTools(
<ChartMonitor />
);
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.
static propTypes = {
state: PropTypes.object,
rootKeyName: PropTypes.string,
pushMethod: PropTypes.string,
tree: PropTypes.shape({
name: PropTypes.string,
children: PropTypes.array
}),
id: PropTypes.string,
style: PropTypes.shape({
node: PropTypes.shape({
colors: proptypes.shape({
'default': PropTypes.string,
parent: PropTypes.string,
collapsed: PropTypes.string
}),
radius: PropTypes.number
}),
text: PropTypes.shape({
colors: PropTypes.shape({
'default': PropTypes.string,
hover: PropTypes.string
})
}),
link: PropTypes.object
}),
size: PropTypes.number,
aspectRatio: PropTypes.number,
margin: PropTypes.shape({
top: PropTypes.number,
right: PropTypes.number,
bottom: PropTypes.number,
left: PropTypes.number
}),
isSorted: PropTypes.bool,
heightBetweenNodesCoeff: PropTypes.number,
widthBetweenNodesCoeff: PropTypes.number,
transitionDuration: PropTypes.number,
onClickText: PropTypes.func,
tooltipOptions: PropTypes.shape({
disabled: PropTypes.bool,
left: PropTypes.number,
top: PropTypes.number,
offset: PropTypes.shape({
left: PropTypes.number,
top: PropTypes.number
}),
indentationSize: PropTypes.number,
style: PropTypes.object
})
};
Name | Description |
---|---|
theme |
Either a string referring to one of the themes provided by redux-devtools-themes (feel free to contribute!) or a custom object of the same format. Optional. By default, set to 'nicinabox' . |
select |
A function that selects the slice of the state for DevTools to show. For example, state => state.thePart.iCare.about . Optional. By default, set to state => state . |
MIT