Skip to content
RED SAGSkills
medium10 pts · first answer countsasync-awaiterror-handlingresilience

One failing widget breaks the dashboard

A dashboard loads three independent widgets. When the ads service is down, the whole page shows an error even though sales and traffic data are fine. What change fixes this?

const [sales, traffic, ads] = await Promise.all([
  getSales(),
  getTraffic(),
  getAds(),
])
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions