Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A custom monitor for Redux DevTools to replay recorded Redux actions

License

NotificationsYou must be signed in to change notification settings

calesce/redux-slider-monitor

Repository files navigation

npm version

This package was merged intoredux-devtools monorepo. Please refer to that repository for the latest updates, issues and pull requests.

A custom monitor for use withRedux DevTools.

It uses a slider based onreact-slider to slide between different recorded actions. It also features play/pause/step-through, which is inspired by some very coolElmexamples.

Try out the demo!

Installation

npm install redux-slider-monitor

Recommended Usage

Use withDockMonitor

<DockMonitortoggleVisibilityKey='ctrl-h'changePositionKey='ctrl-q'defaultPosition='bottom'defaultSize={0.15}><SliderMonitorkeyboardEnabled/></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 the1x button, and "Live" will replay actions with the same time intervals in which they originally were dispatched.

Keyboard shortcuts

Pass thekeyboardEnabled 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/calesce/redux-slider-monitor.gitcd redux-slider-monitornpm installcd examples/todomvcnpm installnpm startopen http://localhost:3000

License

MIT

About

A custom monitor for Redux DevTools to replay recorded Redux actions

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors9


[8]ページ先頭

©2009-2025 Movatter.jp