Answer the question
In order to leave comments, you need to log in
Why is axios throwing an error?
Why is axios throwing an error:
function getUser() {
return (dispatch) => {
axios.get('/login').then(data => {
dispatch({type: LOGIN, payload: data.data.login});
dispatch({type: name, payload: data.data.name});
});
.catch(e => console.log(e));
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question