Redux Dev Tools Extension version 2.16.0 clashing my working code
See original GitHub issueMy code is working fine when the extension installed is version 2.15.3 or i removed the redux dev tools extension.
The error msg as below: Error: You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.
Here is my store.js:
import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import rootReducer from './reducers';
const initialState = {};
const middleware = [thunk];
/* eslint-disable no-underscore-dangle */
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
/* eslint-enable */
const store = createStore(
rootReducer,
initialState,
composeEnhancers(applyMiddleware(...middleware))
);
export default store;
Issue Analytics
- State:
- Created 5 years ago
- Reactions:76
- Comments:16 (2 by maintainers)
Top Results From Across the Web
redux-devtools-extension - npm
Start using redux-devtools-extension in your project by running `npm i redux-devtools-extension`. There are 1311 other projects in the npm ...
Read more >After updating to the latest Redux Dev Tools extension I am ...
Hello @WildThing, it doesn't work for me either. Things that I've tried so far: 1. Updating redux to the latest version (currently 4.1.2)...
Read more >@redux-devtools/extension - npm package | Snyk
Ensure you're using the healthiest npm packages. Snyk scans all the packages in your projects for vulnerabilities and provides automated fix advice.
Read more >How to use Redux DevTools - YouTube
In this video, we're going to teach you how to: - Install Redux DevTools - Generate a React/Redux app in a code editor...
Read more >How to use the redux dev tools to speed up development and ...
Firstly, let's install the Redux DevTools extension. I will be using a Chrome browser for this example. You can find the extension on...
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
2.16.1
is available on Crome Store. Please let me know if it helps.Getting the same issue Chrome Version: 70.0.3538.110 (Official Build) (64-bit) MacOs High Sierra : v10.13.6 Redux Dev Tools Extension version 2.16.0