You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
rpm-mcarman b9f7ec4306 First Commit 3 vuotta sitten
..
utils First Commit 3 vuotta sitten
README.md First Commit 3 vuotta sitten
developmentOnly.d.ts First Commit 3 vuotta sitten
developmentOnly.js First Commit 3 vuotta sitten
index.d.ts First Commit 3 vuotta sitten
index.js First Commit 3 vuotta sitten
logOnly.d.ts First Commit 3 vuotta sitten
logOnly.js First Commit 3 vuotta sitten
logOnlyInProduction.d.ts First Commit 3 vuotta sitten
logOnlyInProduction.js First Commit 3 vuotta sitten
package.json First Commit 3 vuotta sitten

README.md

Redux DevTools Extension’s helper

Join the chat at https://gitter.im/zalmoxisus/redux-devtools-extension

Usage

Install:

npm install --save redux-devtools-extension

and use like that:

import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';

const store = createStore(reducer, composeWithDevTools(
  applyMiddleware(...middleware),
  // other store enhancers if any
));

or if needed to apply extension’s options:

import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';

const composeEnhancers = composeWithDevTools({
  // Specify here name, actionsBlacklist, actionsCreators and other options
});
const store = createStore(reducer, composeEnhancers(
  applyMiddleware(...middleware),
  // other store enhancers if any
));

There’re just few lines of code. If you don’t want to allow the extension in production, just use ‘redux-devtools-extension/developmentOnly’ instead of ‘redux-devtools-extension’.

License

MIT