question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Redux Dev Tools Extension version 2.16.0 clashing my working code

See original GitHub issue

My 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:closed
  • Created 5 years ago
  • Reactions:76
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

20reactions
zalmoxisuscommented, Nov 28, 2018

2.16.1 is available on Crome Store. Please let me know if it helps.

9reactions
jithinkmatthewcommented, Nov 28, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found