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

whetstone/redux-devtools-diff-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build statusnpm versionnpm downloads

5.0 has been released with support for React 15. It contains other improvements to performance (such as calculating diff only when an action is expanded) and some cosmetic changes.

This project provides an alternate monitor for Redux DevTools. The primary goal of this monitor is to highlight thechanges to an application's state from action to action. This tool includes the main features from the default DevToolsmonitor (rollback, commit, reset and individual action toggles).

Imgur

Installation Examples

See the Redux Devtoolsdocumentationfor full details about how to use monitors.

Standalone Monitor

To use Diff Monitor by itself along with Redux Devtools, simply pass it to thecreateDevTools function directly.

Install from npm:npm install --save-dev redux-devtools redux-devtools-diff-monitor

importReactfrom'react';import{createDevTools}from'redux-devtools';importDiffMonitorfrom'redux-devtools-diff-monitor';exportdefaultcreateDevTools(<DiffMonitor/>);

Using DockMonitor

TheDockMonitor component provides common dockingfunctionality that makes monitors easier to work with. See thedocumentation for additional details.

Install from npm:npm install --save-dev redux-devtools-dock-monitor redux-devtools-diff-monitor

importReactfrom'react';import{createDevTools}from'redux-devtools';importDiffMonitorfrom'redux-devtools-diff-monitor';importDockMonitorfrom'redux-devtools-dock-monitor';exportdefaultconstDevTools=createDevTools(<DockMonitortoggleVisibilityKey='ctrl-h'changePositionKey='ctrl-q'><DiffMonitortheme='tomorrow'/></DockMonitor>);

Usage

  • New actions appear at the top of the monitor as they occur.
  • Actions will be minimized by default; actions shown in green are causing a state mutation.
  • Click an action name to expand its pane to view the state mutations the action caused.
  • Click "disable" next to any action name to ignore that action and roll back the state mutations that action caused.
  • As in the default Redux DevTools, click 'Commit' to reset the monitor and set the current app state as the rollbackpoint. If you click rollback after clicking commit, actions will be replayed through the commit point.

Packages

No packages published

Contributors6


[8]ページ先頭

©2009-2025 Movatter.jp