“Error: You may not call store.getState() while the reducer is executing.”

后端 未结 10 1644
囚心锁ツ
囚心锁ツ 2020-12-07 21:41

I just upgraded my fully functional react-native app to Redux v4, but now I am getting the following error:

Error: Error: Error: Error: You may not call

相关标签:
10条回答
  • 2020-12-07 22:30

    Should be fixed now. Update your redux dev tools from 2.16.0 to 2.16.1

    https://github.com/zalmoxisus/redux-devtools-extension/issues/588#issuecomment-442396540

    0 讨论(0)
  • 2020-12-07 22:38

    Solution That work for me

    Disable the Chrome extension of Redux Dev tools. or remove logger from your code.

    update: Update your redux dev tools from 2.16.0 to 2.16.1 Update Redux Dev tools.

    0 讨论(0)
  • 2020-12-07 22:41

    I had this problem on Chrome. Downgrading my version of redux from 4.0.2 to 3.7.2 fixed it for me.

    npm uninstall redux

    npm install redux@3.7.2

    0 讨论(0)
  • 2020-12-07 22:45

    Disabling chrome extension or removing composeWithDevTool from your code will work as a quick fix. But we all know that we need the extension in order to track our application state and manage it properly. So I created an issue today please support hopefully, someone from the redux team will get back to us.

    Or if you are looking for a temporary workaround(for chrome), you can download https://github.com/zalmoxisus/redux-devtools-extension/releases/download/2.15.5/extension.zip and then extract it to some folder.

    Type chrome://extensions and turn on developer mode from top left and then click on Load Unpacked and select the extracted folder for use.

    Issue: https://github.com/reduxjs/redux-devtools/issues/413

    0 讨论(0)
提交回复
热议问题