Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
rpm-mcarman b9f7ec4306 First Commit před 3 roky
..
utils First Commit před 3 roky
README.md First Commit před 3 roky
developmentOnly.d.ts First Commit před 3 roky
developmentOnly.js First Commit před 3 roky
index.d.ts First Commit před 3 roky
index.js First Commit před 3 roky
logOnly.d.ts First Commit před 3 roky
logOnly.js First Commit před 3 roky
logOnlyInProduction.d.ts First Commit před 3 roky
logOnlyInProduction.js First Commit před 3 roky
package.json First Commit před 3 roky

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