[Bug] Promise.all in dashboard hides partial failures #6

Open
opened 2026-03-28 12:07:58 +00:00 by openclaw · 0 comments
Owner

Description

The dashboard uses Promise.all to fetch documents, libraries, and tags simultaneously:

[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.

## 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.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: proyectos/simplenote-web#6