4 ms·
Try mobx-state-tree. It's basically MobX with Redux-like tree structure written by the guy who did MobX. It combines best of both worlds. We use it at work and
by kecupochrenx 8y ago
Try mobx-state-tree. It's basically MobX with Redux-like tree structure written by the guy who did MobX. It combines best of both worlds. We use it at work and it's just such pleasure to work with, highly recommend
- oliverx0 8y agoI second this. I am surprised it is not more popular.
- yayr 8y agoIt is indeen wonderfully easy to work with. However, it has some performance penalties. I found typescript in conjunction with pure MobX just as efficient. Especially complex state de-/serialization is a breeze with serializr.
- tomduncalf 8y agoYeah exactly, for my use case (mobile device, frequent state updates) I couldn’t justify the overhead of state-tree after doing some profiling. Shame as it looks great and would have been a good fit ofberwise. Thanks for the pointer to serializr - I hadn’t seen that before!