3 ms·
Well, to be fair middleware is a rather advanced feature and most users don’t ever need to write one. Action creators are also a mere convention and are not es
by danabramov 11y ago
Well, to be fair middleware is a rather advanced feature and most users don’t ever need to write one.
Action creators are also a mere convention and are not essential to Redux. You can dispatch action objects inline if you prefer. Reducers do add some ceremony, and I wrote up a little on the reasons here: https://news.ycombinator.com/item?id=11187727 https://news.ycombinator.com/item?id=11187727
Glad you found something you like though! No solution is perfect, and it’s all about the tradeoffs you care about.
- jameslk 11y agoYes, those are fair points. It wasn't really the actions/reducers that were the biggest trouble as much as the seemingly strict design around immutable-only data. I actually think that sometimes enforcing some kind of structure around architecture helps protect it from abuse, and following a more Flux-like design seems to help more than hurt in that respect. However, it was more complicated to explain how this worked rather than Mobx's "it works like a spreadsheet" explanation.