Skip to content

Solid immutability vs Mobx mutability and bug sensitivity #340

Answered by ryansolid
quixot1c asked this question in Q&A
Discussion options

You must be logged in to vote

For global state, people tend to enforce these patterns anyway. As you mention MobX has actions. So you have people already developing with best practices in mind here. While Solid doesn't have decorator syntax, MobX newer makeObservable API has a lot of similarities to createState other than Solid hasn't really focused on upgrading existing class objects.

These are a little different as once you are in actions any observable can be updated. It's like I'm turning it off across the board for this small synchronous execution, but as you note you just wrap the specific actions yourself and you've effectively created this read-write segregation.. Stores are typically imported as a single obje…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ryansolid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants