eknuth / redux-devtools-bubbles-monitor

An unobtrusive monitor for Redux DevTools.

Home Page:http://eknuth.github.io/redux-devtools-bubbles-monitor/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redux DevTools Log Monitor

An unobtrusive monitor for Redux DevTools. Depends on toastr and jquery (sorry, it was easy!)

Monitor Demo

Behavior

Redux actions are displayed as they are dispacted. The type of the action is shown along with the payload and other properties of the action. If an object is nested, only the top level keys are shown.

Types of notifications

Error actions are shown as red alert notifications. Redux internal actions, including those from redux router are shown as blue info notifications.

Flux standard actions

A warning is shown if the action does not match the flux standard action specification.

Setup

NPM

Install the npm module.

npm install --save-dev redux-devtools-bubbles-monitor

Include the component with the usual DevTools setup.

JSX

The monitor respects the state of visibleOnLoad from the DevTools component props. If visibleOnLoad is true, notifications will appear when the DebugPanel component is mounted. Ctrl-h will toggle the notification state of the monitor.

import BubblesMonitor from 'redux-devtools-bubbles-monitor'
// requires webpack css loader or just include from cdn
require('redux-devtools-bubbles-monitor/lib/toastr.min.css')
<DebugPanel top right bottom>
  <DevTools store={store}
            monitor={BubblesMonitor}
            visibleOnLoad={true} />
</DebugPanel>

CSS

If you aren't using the webpack css loader you can include the css for toastr from cdn.

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css">

License

MIT

About

An unobtrusive monitor for Redux DevTools.

http://eknuth.github.io/redux-devtools-bubbles-monitor/

License:MIT License


Languages

Language:JavaScript 100.0%