Re:Ask HN: What is your favorite front end state management ...
by shukantpal on Sunday December 25, 2022 @04:41PM
(#34131663)
What are your thoughts on MobX?
[ Parent
| on HN ]
Re:Ask HN: What is your favorite front end state management ...
by aidos on Sunday December 25, 2022 @04:52PM
(#34131791)
We use mobx and I think it’s great. The observable / computed model is really familiar from spreadsheets so it’s very easy to reason about code and computations. You always just think about your data in terms of being computed from dependencies without worrying about pushing state though the system.
We have an object graph (updated via web socket subscriptions) and then twist and turn slices of that data on the way up to the components. I hardly think about the fact that mobx is there and instead just think in terms of reshaping data for display.
Re:Ask HN: What is your favorite front end state management ...
by ledauphin on Sunday December 25, 2022 @04:56PM
(#34131829)
i like mobx because it encourages you to separate state from presentation more than React Context does, but doesn't discourage keeping logically separate state trees separate the way Redux does.
Re:Ask HN: What is your favorite front end state management ...
by dcchuck on Sunday December 25, 2022 @08:52PM
(#34133695)
Other poster here -
Success with MobX on a project. I worked as lead picking up an existing code base - none of us had any MobX experience so came in fresh.
My employer was kind enough to offer up FrontendMasters subscriptions - I watched a MobX course there over a couple of nights - link: https://frontendmasters.com/courses/redux-mobx/
I enjoyed it! Got the job done, no scaling issues