'Promise.all() does not give results separetely

I'm working on a React project where I have to make multiple API calls. So, the way I have been doing is using Promise.all(), but it returns all the results at the same time which sometimes too slow and bad for users' experience. I wonder if there is anyway that I can fetch all the APIs at the same time but still give the results separately so that I can display them in "first fetched first show" order?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source