3 ms·
You can create a shared store and mutate it from any component, not sure what’s missing there.
by solumunus 3y ago
You can create a shared store and mutate it from any component, not sure what’s missing there.
- ttfkam 3y agoOr use a module context depending on your scoping needs. Agreed, not sure what the GP is talking about.
- lf-non 3y agoI 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.
- solumunus 3y agoThis is true and is a fair point.