Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
rpm-mcarman b9f7ec4306 First Commit il y a 3 ans
..
utils First Commit il y a 3 ans
README.md First Commit il y a 3 ans
developmentOnly.d.ts First Commit il y a 3 ans
developmentOnly.js First Commit il y a 3 ans
index.d.ts First Commit il y a 3 ans
index.js First Commit il y a 3 ans
logOnly.d.ts First Commit il y a 3 ans
logOnly.js First Commit il y a 3 ans
logOnlyInProduction.d.ts First Commit il y a 3 ans
logOnlyInProduction.js First Commit il y a 3 ans
package.json First Commit il y a 3 ans

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