Tuesday, April 11, 2023

Fetching API in parallel

  const [memberResults, cartItemResult] = await Promise.all([

makeAPIRequest("get", `members/${currentUser.uid}`),
makeAPIRequest("get", `memberCart/get/cart/items/${currentUser.uid}`),
]);

No comments:

Post a Comment