One more way to debug Async/Await Promise hell

Debugging Async/Await Promise hell is a fun activity. It is a great time sync for many developers who are coming from other languages or the beginners alike.

Short Version

If your code is not waiting for Promise to complete, check the return statement across the chain of functions.

When in doubt add a ‘return’ statement.

This link has a slightly simpler explanation on how to use async and await.

https://alligator.io/js/async-functions/

--

--