0

I have used async/await in the handleLogin method, and the method after await gets an error

enter image description here

The same problem occurs with actions in the Store enter image description here

Shankar Ganesh Jayaraman
  • 1,401
  • 1
  • 16
  • 22
  • you don't need a explicit try/catch. Instead use the reject block after success in promise. – jithil Dec 20 '20 at 12:51
  • 1
    Please post code as text, not paintings. – Bergi Dec 20 '20 at 15:44
  • [Never pass an `async function` as the executor to `new Promise`](https://stackoverflow.com/q/43036229/1048572)! Also a `catch` that just rethrows the error is quite pointless – Bergi Dec 20 '20 at 15:45
  • *What* error do you get when it jumps to the exception handler? – Bergi Dec 20 '20 at 15:46

0 Answers0