logoalt Hacker News

slopinthebagyesterday at 8:10 PM1 replyview on HN

What is the difference between mobx or solid stores or any of the reactive frameworks that do reactivity on proxy objects?


Replies

dasherswyesterday at 8:43 PM

Solid stores are a great improvement over raw signals, but they still come with their own gotchas. First off, it's an entirely new syntax. You need to learn its documentation. You always have to use setStore, and it has a weird syntax like `setStore("users", 2, "loggedIn", false)` and even pushing items to an array is weird. In Gea it's just regular JavaScript: `this.users[2].loggedIn = false` or `this.users.push(...)`. MobX also comes with its own syntax.

In the end Gea is basically as simple as a plain old JavaScript class, made reactive by its compiler.

show 1 reply