Replies: 3 comments 1 reply
-
Hey @Kiura , hope you don't mind but I moved this over to the Q&A Discussion area for visibility since it is less of an issue. We internally here at Infinite Red use MST primarily, so that's why it is in our boilerplate. We are discussing alternatives as the days go by, but this boilerplate is mainly for us, but we're happy to pass it on to the community as well! So when we get over to possibly picking an alternative that we like, it would change then. You could (and likely should 😉) adapt the boilerplate to your liking/needs and use whatever state management library you see fit. In fact, we'd welcome it and appreciate it if you wrote your steps over on the Ignite Cookbook to help others! |
Beta Was this translation helpful? Give feedback.
-
Hey @frankcalise, Thanks for moving the "issue" to the right place! Thank you for the explanation of why MST is used in the boilerplate. However, would be nice to know the answer to the other 2 questions too 😅️ maybe you or someone else can address those:
I did change the state management library, but the problem with that is it is a little inconvenient whenever I try to upgrade the boilerplate. For now, I reverted back to MST, as it does the job, but it would be nicer to have a first class typescript citizen :) Also, I had no idea there was a cookbook, I will definitely contribute if I decide to go back to another state management library. |
Beta Was this translation helpful? Give feedback.
-
I've used mobx-state-tree over 2 years and I actually love it but its type system is making things very hard especially on circular model dependencies. Nowadays, I'm planning to use to zustand on my new projects with "zoov" (for module system like mst) & some other integrations that provide features of mst. @ryskin @frankcalise is there any performance benchmarks or some explanation about mst vs. zustand/jotai? Which is more performant? |
Beta Was this translation helpful? Give feedback.
-
I am curious why not replace mobx with something like zustand or alternatives that work better with typescript?
Or at the very least why not use classes-based mobx rather than
type.model()
approach?Another question, why do we need to use mobx-state-tree? isn't mobx capabilities enough to handle all state-related features?
Great boilerplate, BTW!
Beta Was this translation helpful? Give feedback.
All reactions