redux-devtools/packages/redux-slider-monitor
2019-04-30 09:05:03 -07:00
..
examples/todomvc Use prettier 2019-01-10 20:51:14 +02:00
src Allow custom keys for slider monitor 2019-04-30 09:05:03 -07:00
.babelrc Update babel 2019-02-06 01:59:55 +02:00
LICENSE.md Add redux-slider-monitor (#434) 2018-12-22 16:20:04 +02:00
package.json Allow custom keys for slider monitor 2019-04-30 09:05:03 -07:00
README.md Allow custom keys for slider monitor 2019-04-30 09:05:03 -07:00

Redux Slider Monitor

npm version

A custom monitor for use with Redux DevTools.

It uses a slider based on react-slider to slide between different recorded actions. It also features play/pause/step-through, which is inspired by some very cool Elm examples.

Try out the demo!

Installation

npm install redux-slider-monitor

Use with DockMonitor

<DockMonitor
  toggleVisibilityKey="ctrl-h"
  changePositionKey="ctrl-q"
  defaultPosition="bottom"
  defaultSize={0.15}
>
  <SliderMonitor keyboardEnabled />
</DockMonitor>

Dispatch some Redux actions. Use the slider to navigate between the state changes.

Click the play/pause buttons to watch the state changes over time, or step backward or forward in state time with the left/right arrow buttons. Change replay speeds with the 1x button, and "Live" will replay actions with the same time intervals in which they originally were dispatched.

Keyboard shortcuts

Pass the keyboardEnabled prop to use these shortcuts

ctrl+j: play/pause

ctrl+[: step backward

ctrl+]: step forward

You can override these shortcuts with the playKey, stepBackwardKey, and stepForwardKey respectively. These props are parsed by parse-key, just like in DockMonitor.

Running Examples

You can do this:

git clone https://github.com/calesce/redux-slider-monitor.git
cd redux-slider-monitor
npm install

cd examples/todomvc
npm install
npm start
open http://localhost:3000

License

MIT