How to use Redux DevTools in a chrome extension
See original GitHub issueHi 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
}
redux@3.7.2
redux-devtools-extension@2.15.1
Thanks!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:5
Top Results From Across the Web
Redux DevTools
The extension provides power-ups for your Redux development workflow. Apart from Redux, it can be used with any other architectures which handle the...
Read more >Redux Devtools for Dummies - codeburst
Install Redux browser dev-tools (Chrome and Firefox) · Install dev-tools npm package and import it into store file · Open developer tools with...
Read more >Setting Up Redux DevTools — A Simple Guide | by Dinesh
Visualizing your states and actions in Redux DevTools Console. 1.Adding Redux DevTools extension to our browser (Google Chrome) Download and ...
Read more >How To Configure Redux DevTools Within Chrome Inspector ...
I was able to figure this one out by accident. The solution is very technical. You have to click and drag the left...
Read more >zalmoxisus/redux-devtools-extension - GitHub
from Chrome Web Store; · or download extension. · or build it with npm i && npm run build:extension and load the extension's...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.