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
}
`
),
]);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment