Chapter 14 · Example 6 · Data fetching on the client and performance

Promise.all at the root

Lifting all three fetches into the root and awaiting them together with Promise.all fires them in parallel, cutting total wait to the slowest single request.

Loading live editor…