darray-queens / Project-Atelier

0 stars 2 forks source link

Promises #79

Open stevkim opened 2 months ago

stevkim commented 2 months ago

https://github.com/darray-queens/FEC_D-ARRAY_QUEENS/blob/90ed0dee7efa4ba7fc4b026dee36af97e04437ab/src/components/relatedProductsModule/relatedProducts/ComparisonModule.jsx#L49

Await is blocking, meaning the second promise wont be called until the first is finished. This makes this code really slow. Is there any way we can call all of them at once?