I think promise.all() is going to be what you're looking for.
constfirstFetch=fetch('some/resource')constsecondFetch=fetch('some/other/resource')Promise.all([firstFetch,secondFetch]).then(values=>{// do something with values// values[0] is the result of firstFetch// values[1] is the result of secondFetch}).catch(error=>{// handle any errors})
I think promise.all() is going to be what you're looking for.
Okay! i try it