-
Notifications
You must be signed in to change notification settings - Fork 175
Open
Labels
Description
Redux DevTools Chrome Extension doesn't work after I upgrade the ng-redux to 4.0.x.
The console shows Error: Actions must be plain objects. Use custom middleware for async actions.
even though I've already used the thunk
middleware like this
$ngReduxProvider.createStoreWith(rootReducer, [thunk], [window.__REDUX_DEVTOOLS_EXTENSION__()]);
The ng-redux library works well if I remove the storeEnhancer [window.__REDUX_DEVTOOLS_EXTENSION__()]
.
I can reproduce the issue in the example project(https://github.com/johanzhou8/ng-redux/tree/master/examples/async-immutable) too.
Steps to reproduce the issue:
- download the example project
- install the dependencies.
npm install
- upgrade the ng-redux.
npm i [email protected]
- use the redux devtool storeEnhancer in the index.js file.
$ngReduxProvider.createStoreWith(rootReducer, [thunk], [window.__REDUX_DEVTOOLS_EXTENSION__()]);
- start the server.
npm start
- look at the error message in the console
The workaround for me is downgrading to the older version. npm i [email protected]
.
Thanks.
GuyPie, NadiykaS, bennekrouf, villesau, JamieKudla and 2 more