Open Rohithzr opened 7 years ago
if I go to node_modules/redux-localstorage/persistState.js
and add some console.log()
s
here:
return function (next) {
return function (reducer, initialState, enhancer) {
console.log("-----------------------------")
console.log("After calling createStore()")
console.log("reducer", reducer);
console.log("initialState", initialState);
console.log("enhancer", enhancer);
console.log("-----------------------------")
if (typeof initialState === 'function' && typeof enhancer === 'undefined') {
enhancer = initialState;
initialState = undefined;
}
I figured it out as incompability issue with redux chrome extension. I am trying to figure out the problem now.
Confirmed I have the same issue. "Fixed" by adding the persistState enhancer before the chrome extension in the composedEnhancers list.
I am trying to implement redux-localstorage in my reac-redux application and I am facing this issue where I get the error
Uncaught TypeError: Cannot read property 'length' of undefined
here is my code:
Node and other versions