DEV Community

Discussion on: The Power of Javascript Promise.all()

Collapse
 
leandroandrade profile image
Leandro Andrade

Hi! Thanks for your post. In your solution, think about use Promise.allsettled instead of Promise.all.

Promise.allsettled allow you handle errors if some requests return it.

Collapse
 
gbourne profile image
Geoffrey Bourne

Good one. Promise.allSettled is might be better in some circumstances to handle rejected Promises.