redux-devtools/packages/redux-devtools-extension
2021-09-06 20:07:44 +00:00
..
utils chore(extension): move npm package (#657) 2020-10-26 02:43:20 -04:00
CHANGELOG.md Publish 2021-03-06 08:57:19 -05:00
developmentOnly.d.ts chore(extension): move npm package (#657) 2020-10-26 02:43:20 -04:00
developmentOnly.js chore(extension): move npm package (#657) 2020-10-26 02:43:20 -04:00
index.d.ts feat(extension): replace whitelist/blacklist with allowlist/denylist (#851) 2021-09-06 20:07:44 +00:00
index.js chore(extension): move npm package (#657) 2020-10-26 02:43:20 -04:00
logOnly.d.ts chore(extension): move npm package (#657) 2020-10-26 02:43:20 -04:00
logOnly.js chore(extension): move npm package (#657) 2020-10-26 02:43:20 -04:00
logOnlyInProduction.d.ts chore(extension): move npm package (#657) 2020-10-26 02:43:20 -04:00
logOnlyInProduction.js chore(extension): move npm package (#657) 2020-10-26 02:43:20 -04:00
package.json Publish 2021-03-06 08:57:19 -05:00
README.md feat(extension): replace whitelist/blacklist with allowlist/denylist (#851) 2021-09-06 20:07:44 +00:00

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 extensions options:

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

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

Therere just few lines of code. If you dont want to allow the extension in production, just use redux-devtools-extension/developmentOnly instead of redux-devtools-extension.

License

MIT