News for hackers. Stuff that matters.
Re:Idiomatic Redux: Implementation and Intent by cageface on Friday July 07, 2017 @01:47AM (#14716359)
Redux itself is boilerplate heavy but conceptually pretty easy to understand. But once you start building real world apps and have to deal with async actions things get a lot more complicated and a lot of the benefits of the redux model evaporate. I plan to use mobx on my next react app.
Re:Idiomatic Redux: Implementation and Intent by Sacho on Friday July 07, 2017 @03:26AM (#14716715)
Mobx doesn't do anything to alleviate the complexity that comes eith asynchronicity. It does help with boilerplate, though.

I think most people are more comfortable with object composition rather than function composition, so Mobx feels more natural.

Re:Idiomatic Redux: Implementation and Intent by danenania on Friday July 07, 2017 @01:56AM (#14716382)
Redux-saga helps a lot for this. It has a bit of a learning curve, but it's an extremely elegant way of dealing with tricky asynchronous workflows once you get a feel for it. I think it's actually my favorite lib in the redux ecosystem.
Re:Idiomatic Redux: Implementation and Intent by cageface on Friday July 07, 2017 @03:00AM (#14716626)
Redux saga provides a nice syntax I agree but leans on some fairly advanced JS concepts. It's a lot to ask a beginner to digest just to display some data from a REST endpoint.
Re:Idiomatic Redux: Implementation and Intent by joshuahutt on Friday July 07, 2017 @02:19AM (#14716459)
I went from Redux to MobX in one of my recent projects and it was a breath of fresh air. It's so much easier to work with, and more performant in my situation, too.