Using in a typescript project

The recommended way is to use redux-devtools-extension npm package, which contains all typescript definitions. Or you can just use window as any:

const store = createStore(
  (window as any).__REDUX_DEVTOOLS_EXTENSION__ &&
    (window as any).__REDUX_DEVTOOLS_EXTENSION__()

Note that you many need to set no-any to false in your tslint.json file.

Export from browser console or from application


The extension is not sharing store object, so you should take care of that.

Applying multiple times with different sets of options

We're not allowing that from instrumentation part, because that would re-dispatch every app action in case we'd have many liftedStores, but there's a helper for logging only, which can be used it like so:

import { createStore, compose } from 'redux';
import { devToolsEnhancer } from 'redux-devtools-extension/logOnly';

const store = createStore(reducer, /* preloadedState, */ compose(
  instaceID: 1,
  name: 'Blacklisted',
  actionsBlacklist: '...'
  instaceID: 2,
  name: 'Whitelisted',
  actionsWhitelist: '...'

results matching ""

    No results matching ""