Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Redux] Adding multiple middleware conflict #199
It seems like it is a problem with pwa-helpers, but I am going to fill the issue here, because maybe I am just misunderstanding the configuration.
and then npm start.
on an Ubuntu 18.04 LTS.
Am I doing it wrong? If so, please add another example to the documentation on how to add multiple Middlewares, too.
Not super familiar with adding multiple middleware, but do any of these work?
compose(lazyReducerEnhancer(combineReducers), applyMiddleware(logger, thunk))
compose(lazyReducerEnhancer(combineReducers), applyMiddleware(logger), applyMiddleware(thunk))
We are also working to update to Redux 4 in #200 - maybe it requires that version?
I fixed it myself. It has nothing to do with the redux version. The problem is importing the dist file. You have to import source-files for some middlewares, like so:
I also have an angular project with redux and this project doesnt have this problem. So maybe it is worth mentioning somewhere or changing the configuration.