Git Product home page Git Product logo

redux-devtools-diff-monitor's Introduction

Redux DevTools โ€“ Diff Monitor

build status npm version npm 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 the changes to an application's state from action to action. This tool includes the main features from the default DevTools monitor (rollback, commit, reset and individual action toggles).

Imgur

Installation Examples

See the Redux Devtools documentation for full details about how to use monitors.

Standalone Monitor

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

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

import React from 'react';
import { createDevTools } from 'redux-devtools';
import DiffMonitor from 'redux-devtools-diff-monitor';

export default createDevTools(
  <DiffMonitor />
);

Using DockMonitor

The DockMonitor component provides common docking functionality that makes monitors easier to work with. See the documentation for additional details.

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

import React from 'react';
import { createDevTools } from 'redux-devtools';
import DiffMonitor from 'redux-devtools-diff-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';

export default const DevTools = createDevTools(
    <DockMonitor
        toggleVisibilityKey='ctrl-h'
        changePositionKey='ctrl-q'
    >
        <DiffMonitor theme='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 rollback point. If you click rollback after clicking commit, actions will be replayed through the commit point.

redux-devtools-diff-monitor's People

Contributors

alesch avatar cchamberlain avatar damassi avatar iktl avatar jhen0409 avatar thesmaw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.