Redux-devtools-extension: How to use Redux DevTools in a chrome extension

Created on 22 Jan 2018  路  4Comments  路  Source: zalmoxisus/redux-devtools-extension

Hi there,

I'm developing a chrome extension and the redux-devtools-extension doesn't seem to find the store. The window.__REDUX_DEVTOOLS_EXTENSION__ (or window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__) are not getting defined, from what I could gather. I'm guessing the problem is that redux-devtools-extensions doesn't work on chrome-extension://<extensionID>/<page> urls. Is there a way to fix that?

My configuration is as follows:

// configureStore.js
import { createStore, combineReducers, applyMiddleware, compose } from 'redux'
import thunk from 'redux-thunk'

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose

export default () => {
  const store = createStore(
    combineReducers({
      // my reducers
    }),
    composeEnhancers(applyMiddleware(thunk))
  )

  return store
}
[email protected]
[email protected]

Thanks!

Most helpful comment

@seyaobey I was able to solve it using the following approach

https://viastudio.com/debugging-a-reactjs-chrome-extension/

I also had to run remotedevtools locally: remotedev --hostname=localhost --port=8000 and change the Settings of the RemoteDev popup to Use custom (local) server

All 4 comments

I'm in the same situation and would love to know if it's possible to use Redux DevTools in a Chrome extension.

Any advance on this topic? I am having the same problem

@seyaobey I was able to solve it using the following approach

https://viastudio.com/debugging-a-reactjs-chrome-extension/

I also had to run remotedevtools locally: remotedev --hostname=localhost --port=8000 and change the Settings of the RemoteDev popup to Use custom (local) server

@markbiek Thanks for the blog post! Setting up remote-redux-devtools worked very smoothly.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zalmoxisus picture zalmoxisus  路  4Comments

pooltoymae picture pooltoymae  路  3Comments

scarlac picture scarlac  路  4Comments

Koleok picture Koleok  路  4Comments

zalmoxisus picture zalmoxisus  路  4Comments