1

I have two API calls inside my method and i decided to use promise all to execute those and wait the method until finishing the API calls.

Test() {
  promise.all([getFoo(), getBar()])
    .then()
    .catch();
  -- --some other things
}

And when i handle the errors in promiseAll it will come to the catch phase even only one Api call failed. But i need to continue executing 2nd API call even 1st API call failed.( by handling Each promise individually) How can i do that ?

Parth Raval
  • 4,097
  • 3
  • 23
  • 36
Rid
  • 13
  • 1
  • 5

0 Answers0