If one request fails, the entire Promise.all fails and some data may load while other data does not. This can lead to confusing UI states.
Recommendation
Use Promise.allSettled or sequential awaits with individual error handling to ensure partial failures are handled gracefully.
## Description
The dashboard uses `Promise.all` to fetch documents, libraries, and tags simultaneously:
```javascript
[documents, libraries, tags] = await Promise.all([
api.getDocuments(),
api.getLibraries(),
api.getTags()
]);
```
### Problem
If one request fails, the entire `Promise.all` fails and some data may load while other data does not. This can lead to confusing UI states.
### Recommendation
Use `Promise.allSettled` or sequential awaits with individual error handling to ensure partial failures are handled gracefully.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Description
The dashboard uses
Promise.allto fetch documents, libraries, and tags simultaneously:Problem
If one request fails, the entire
Promise.allfails and some data may load while other data does not. This can lead to confusing UI states.Recommendation
Use
Promise.allSettledor sequential awaits with individual error handling to ensure partial failures are handled gracefully.