Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You don't need _any_ of that. You can use vanilla redux and put your asynchronous code in middleware.


More of this. Middleware is simpler to grok than reducers and provides a clean, universal solution to async. You don’t need sagas, just dispatch events at meaningful points in time, like when a request is initiated and then another action when it completes. Pretty sure Dan Abramov taught this approach years ago in an egghead tutorial, if it takes hearing it from the horse’s mouth to get you to consider not just throwing more libraries at it




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: