DEV Community

Discussion on: The dangers of async/await

Collapse
 
christopherkade profile image
Christopher Kade

Of course, but we must take into account use-cases where our code is running inside a hook for example (mounted, created etc.), or when dealing with legacy code.

The right thing to do would be refactoring it to fit what you mentioned, but we don't always have that option.