Open nikiben opened 6 years ago
@nikiben I think you're on the wrong repo. The angular 2+ ngRedux repository is here: https://github.com/angular-redux/store
He might be on wrong repo but same problems happens with ng-redux. I'm using ng-redux for angular 1.x. I've been on ^3.4.0-beta.1 for a long time and I updated yesterday to the newest one and I see "Actions must be plain objects" error. Getting rid of Redux Dev Tools Chrome makes it go away. For now, I just went back to 3.x. Here is my createStore code. Maybe I'm doing something obvious wrong but it's not documented.
$ngReduxProvider.createStoreWith(
reducer,
[
...someCustomMiddleware
'ngUiRouterMiddleware',
thunk,
],
window.__REDUX_DEVTOOLS_EXTENSION__
? [window.__REDUX_DEVTOOLS_EXTENSION__()]
: null,
{
...someState
}
);
@Pentiado I think the issue might be Redux Observable. Take a look at the link below. It might help. From the epic/effect function, I was dispatching an action inside an action instead of returning the action object.
https://stackoverflow.com/questions/48388594/angular-redux-epics
https://github.com/redux-observable/redux-observable/issues/413
Getting the following error message in console when using the angular-redux library. Also, Redux won't catch or listen for actions after the error occurs. I've searched, including the documentation but nothing points out to fix the error. Am I missing something?
Error
Component
Actions
Reducer
Epics
Service
And off course the setup