Answer the question
In order to leave comments, you need to log in
How to handle and display parallel promise requests?
Good afternoon.
Actually, a question. There is a list of cards, each card is a separate request for backing.
It is necessary to display the cards in the order they arrived from the back, that is, one card arrived, we displayed it in the ui while the other one is loading (makes a request), and when the other card arrives, then display it next to it.
Tried through Promise.allSettled, requests are launched in parallel, but the data display itself still waits until each promise is resolved and only then the cards are displayed.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question