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 ng-redux@4.0.3
- 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 ng-redux@3.5.2.
Thanks.
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 thethunkmiddleware like thisThe 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:
npm installnpm i ng-redux@4.0.3$ngReduxProvider.createStoreWith(rootReducer, [thunk], [window.__REDUX_DEVTOOLS_EXTENSION__()]);npm startThe workaround for me is downgrading to the older version.
npm i ng-redux@3.5.2.Thanks.