リクエストウォーターフォール
リクエストが複数あるとき、前のリクエストが完了するまで次のリクエストを行わない、一連のネットワークリクエストのこと
e.g.
code:tsx
const revenue = await fetchRevenue();
const latestInvoices = await fetchLatestInvoices(); // wait for fetchRevenue() to finish
const {
numberOfInvoices,
numberOfCustomers,
totalPaidInvoices,
totalPendingInvoices,
} = await fetchCardData(); // wait for fetchLatestInvoices() to finish