You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When used with Redux's compose, this enhancer works perfectly with no impact at all. However, when used within a composeWithDevTools, it results in a RangeError: Maximum call stack size exceeded.
This is because of this line, which mutates the store causing our getState call to become infinitely recursive:
Thanks for the details and for investigation! That mutation was introduced for enhancers which change the store after our enhancer was applied (as in #133). But I tried now with saga example and it seems unnecessary now, a lot was changed since then.
Here's a very basic, valid, store enhancer that essentially wraps the store's original
getState
in a newgetState
function:When used with Redux's
compose
, this enhancer works perfectly with no impact at all. However, when used within acomposeWithDevTools
, it results in aRangeError: Maximum call stack size exceeded
.This is because of this line, which mutates the store causing our
getState
call to become infinitely recursive:redux-devtools-extension/src/browser/extension/inject/pageScript.js
Line 310 in dc39a63
It's possible to work around the issue like this:
These issues seem relevant:
#248
#551
The text was updated successfully, but these errors were encountered: