Great example of the benefits of async/await


Great example of the benefits of async/await. Love how it eliminated the nesting in the chained promises version.

Much easier to read. πŸ‘

#javascript

That said, this problem would go away altogether with a better designed api. I’d like to make one api call that’s orchestrated on the server instead of chaining many calls together.

A single atomic mutation is typically preferable.

View original on X