redux-devtools/packages/redux-devtools-slider-monitor
github-actions[bot] c8cf847681
Version Packages (#1651)
* Version Packages

* Update lock file

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nathan Bierema <nbierema@gmail.com>
2024-04-07 21:19:20 +00:00
..
examples/todomvc fix(deps): update all non-major dependencies (#1633) 2024-03-26 21:01:02 +00:00
src Convert React packages to ESM (#1650) 2024-04-07 21:04:45 +00:00
.eslintignore Imprrove ability to tree-shake libraries (#1050) 2022-01-24 02:11:46 +00:00
.eslintrc.js chore(deps): update typescript-eslint monorepo to v6 (major) (#1436) 2023-09-03 22:56:58 -04:00
babel.config.esm.json Imprrove ability to tree-shake libraries (#1050) 2022-01-24 02:11:46 +00:00
babel.config.json Imprrove ability to tree-shake libraries (#1050) 2022-01-24 02:11:46 +00:00
CHANGELOG.md Version Packages (#1651) 2024-04-07 21:19:20 +00:00
LICENSE.md Rename redux-slider-monitor to redux-devtools-slider-monitor (#558) 2020-08-06 08:02:35 -04:00
package.json Version Packages (#1651) 2024-04-07 21:19:20 +00:00
README.md chore(*): make more packages scoped (#692) 2020-12-21 15:46:28 -05:00
tsconfig.json Imprrove ability to tree-shake libraries (#1050) 2022-01-24 02:11:46 +00:00

Redux DevTools 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

yarn add @redux-devtools/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

Running Examples

You can do this:

git clone https://github.com/reduxjs/redux-devtools.git
cd packages/redux-devtools-slider-monitor/examples/todomvc
yarn install
npm start
open http://localhost:3000

License

MIT