carlosvegap / capstone-kickoff

0 stars 0 forks source link

Update values not in useEffect but after all promises #51

Closed CarLosVegga closed 1 year ago

CarLosVegga commented 1 year ago

Instead of initializing the reviews below in the use effect, it'd be better to wait until both these requests finish (using Promise.all for example) and initialize it afterward.

_Originally posted by @vqdo in https://github.com/carlosvegap/capstone-kickoff/pull/45#discussion_r932564148_