The function makeRequest() returns a promise. Suppose 'secondPath' in promises returns a reject/error, i want to custom handle it for that case. but promises.all() is all or none.
promises=["firstPath","secondPath","thirdPath"] const completeResult = Promise.all(promises).then((result) => { console.log(result) }); function makeRequest(path){ const options={ type: "GET", url: "https://localhost:7000/${path}" } return request(options); }
Promise.all) or usePromise.allSettledinstead and deal with it afteward.