0

It says that:

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.

I solve the issue but I still want to know How to pass it down from the top reducer instead of reading it from the store?

Zullu
  • 171
  • 1
  • 13

1 Answers1

0

As user Victor Le commented at this other post: "Error: Error: Error: Error: You may not call store.getState() while the reducer is executing."

It's an issue with the new v2.16.0 release of redux-devtools-extension. Just disable it, don't use it or downgrade to v2.15.

The post above is really useful.

Best!

Charly
  • 63
  • 1
  • 7