Penyu IT World's
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
}
`
),
]);
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)