panda-express-js / Atelier

0 stars 7 forks source link

Concurrent Promises #122

Closed stevkim closed 6 months ago

stevkim commented 6 months ago

https://github.com/panda-express-js/FEC/blob/73c46e6a571b4171b2f23c64ad3a88c06a3ab5c7/client/src/components/questionsAndAnswers/index.jsx#L22

Using forEach for these fetch functions will make the timing for when the states get updated weird, causing unnecessary re-renders. Can we figure out a way to set the state once?