You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bindActionCreators expected a function actionCreator for key 'ACCOUNT_LOGIN', instead received type 'string'.
I started getting this error today out of the blue for all bindActionCreators in the app.
I even went to older GIT history where i'm sure i wasn't having this error, and now it's there too.
The app still works, but the errors pop-up on each route change.
Anyone had this problem before? Or any idea where it could came from? I can provide more code, if bellow is not sufficient.
Container:
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import account from '../components/account';
import * as AccountActions from '../actions/account';
function mapStateToProps(state) {
return {
username: state.account.username,
password: state.account.password,
loggedIn: state.account.loggedIn,
registred: state.account.registred,
loading: state.account.loading,
clientId: state.account.clientId
};
}
function mapDispatchToProps(dispatch) {
return bindActionCreators(AccountActions, dispatch);
}
export default connect(mapStateToProps, mapDispatchToProps)(account);
I started getting this error today out of the blue for all
bindActionCreators
in the app.I even went to older GIT history where i'm sure i wasn't having this error, and now it's there too.
The app still works, but the errors pop-up on each route change.
Anyone had this problem before? Or any idea where it could came from? I can provide more code, if bellow is not sufficient.
Container:
Action:
Reducer:
Error:
The text was updated successfully, but these errors were encountered: