News for hackers. Stuff that matters.
Re:Async/Await will make code simpler by tracker1 on Monday August 21, 2017 @04:49PM (#15067759)
I think it's worth noting that async/await is a bunch of sugar around promises... All async functions return a Promise... and all awaits await on a result or promise resolution. and Errors will bubble out.

This is helpful as many times I'll write a function that simply returns a promise to wrap around an older callback style function. I know I can promisify, but this doesn't always work as sometimes the methods need their context.

As to redux, frankly, I find redux-thunks + async functions to work pretty well together until you need more.

There are no comments on this comment yet.