Have ideas to improve npm?Join in the discussion! »

    redux-devtools-extension
    TypeScript icon, indicating that this package has built-in type declarations

    2.13.9 • Public • Published

    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

    Keywords

    none

    Install

    npm i redux-devtools-extension

    DownloadsWeekly Downloads

    915,865

    Version

    2.13.9

    License

    MIT

    Unpacked Size

    13.6 kB

    Total Files

    12

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar