Open alexcoaton opened 2 years ago
Being reviewed by Vanessa and Bryden
I don't see that any changes have been made since the last review, so I don't think this is ready for re-review? Putting back to in-progress.
Removed console.log and refactored try-catch block from Alex comment
One more try, this time we've checked the last commit has no console log and run lint was ok (8 warnings)
Added env.example back
There are over 150 uses of
.then()
in the codebase at the time of this issue creation. The objective is to eventually get them all converted to a single consistent style withasync...await
, instead, but it would be impractical to do them all at once.Note that there is one exception where async / await can be problematic - inside useEffect() hook calls. Read this blog post to find out how to handle it correctly.
Considering the above exception, find uses of .then() in the following files and replace them with async / await-style promise handling.