Files
coopgo/node_modules/redux-devtools-extension
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00
..
2024-10-14 09:15:30 +02:00
2024-10-14 09:15:30 +02:00
2024-10-14 09:15:30 +02:00
2024-10-14 09:15:30 +02:00
2024-10-14 09:15:30 +02:00
2024-10-14 09:15:30 +02:00
2024-10-14 09:15:30 +02:00
2024-10-14 09:15:30 +02:00
2024-10-14 09:15:30 +02:00
2024-10-14 09:15:30 +02:00
2024-10-14 09:15:30 +02:00
2024-10-14 09:15:30 +02: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, actionsBlacklist, 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