Closed lamogura closed 6 years ago
Remember that what you import from this library is a "middleware factory", which means it's a function you have to call to get the middleware to inject in Redux. So your example should be changed to be like this:
const middleware = [
require('redux-immutable-state-invariant').default(), // <-- Notice the parens here
thunk,
promise,
]
const store = createStore(
rootReducer,
initialState,
compose(
applyMiddleware(...middleware),
DevTools.instrument() // Enable Redux DevTools
)
)
Hope this helps with the issue!
Closing since it's been a while this has been open without answer. Feel free to reopen if you still have issues!
Got this error when adding this to my dev middleware.
"redux": "version": "3.6.0"