Why doesn't the debugger line get hit? Please let me know how to modify the code so it does get hit.
async _store_token(tok){ // tried this line with and without 'async', just to see
debugger; // THIS LINE DOESN'T GET CAUGHT BY DEBUGGER
}
componentWillMount(){
//debugger;
axios({
method: 'post',
url: BASE_URL + '/users/login',
data: {
email: "email1@mail.com",
password: "passpass"
}
})
.then(async function (res) {
debugger; // CODE IS FINE AT THIS DEBUG STATEMENT
_store_token(res.token); // TRIED TO USE 'this._store_token(res.token);'
// but it didn't work either
})