---
title: "Promise.all vs Promise.allSettled: which one should I use?"  
description: "Promise.all vs Promise.allSettled: which one should I use?"  
author: "Suman Tamang"  
published: 2026-11-13  
updated: 2026-11-13  
canonical: https://www.mindstick.com/forum/163013/promise-all-vs-promise-allsettled-which-one-should-i-use  
category: "JavaScript and Frontend"  
tags: ["javascript", "Promise.all", "Promise.allSettled", "Async", "Error Handling"]  
reading_time: 1 minute  

---

# Promise.all vs Promise.allSettled: which one should I use?

I call five APIs at once to build a dashboard. If one fails, the whole page breaks. What should I change?

## Replies

### Reply by Madison Ross

- **Promise.all** resolves with all results if every promise succeeds, but rejects immediately when any one rejects. You lose the other results.
- **Promise.allSettled** always waits for every promise and gives you an array of `{ status: "fulfilled", value }` or `{ status: "rejected", reason }` objects.

For a dashboard where each widget is independent, use allSettled and render what succeeded:

```
const results = await Promise.allSettled([getSales(), getUsers(), getErrors()]);
results.forEach(r => {
  if (r.status === "fulfilled") show(r.value);
  else showError(r.reason);
});
```

Use Promise.all when you truly need every result, for example loading data that must all be present before you continue. There is also Promise.race (first to settle) and Promise.any (first to succeed).


---

Original Source: https://www.mindstick.com/forum/163013/promise-all-vs-promise-allsettled-which-one-should-i-use

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
