Hacker News new | ask | show | jobs
by solumunus 1072 days ago
You can create a shared store and mutate it from any component, not sure what’s missing there.
2 comments

I was primarily saying that I find the DX of vue's reactivity to be more intuitive in the context of my application. I didn't intend to say there was something that was possible with vue which wasn't with svelte.

Last I checked (and things may have changed since) is that svelte didn't support transparent reactivity for deeply nested objects. So something like `$myStore.foo.bar = "baz"` wouldn't trigger a component update, you need to remember to use .set, .update etc. You could assign to local reactive variables but you couldn't assign to stores.

I am sure the library authors made these trade offs thoughtfully, I was just disagreeing with the blanket statement that Svelte is generally a major improvement over Vuejs.

This is true and is a fair point.
Or use a module context depending on your scoping needs. Agreed, not sure what the GP is talking about.