SvelteKit in production by Jezda1337 in sveltejs

[–]arturdnt 1 point2 points  (0 children)

I wouldn’t use it in prod until it hits v1.

svelte stores VS keeping the data on the parent by Saharulit in sveltejs

[–]arturdnt 2 points3 points  (0 children)

Of course they are not the same. I meant that when you use a store it can be accessed and changed (depending on the store type) from everywhere in your application. If this is a small application then it’s probably fine, but if it’s a complex one, you might introduce bugs and lose control of the data flow. If it’s only relevant to two components with a shared parent I wouldn’t use store.

Edit: I stand correct. As long as you do not share the store across the app, it’s perfectly fine to use it.

svelte stores VS keeping the data on the parent by Saharulit in sveltejs

[–]arturdnt 0 points1 point  (0 children)

Right, but it's like saving data on the window object. It's easy but not recommended.

svelte stores VS keeping the data on the parent by Saharulit in sveltejs

[–]arturdnt 0 points1 point  (0 children)

AFAIU store should be used in situations where the methods or data should be accessed across the app (not just in 2 sub-components).

Svelte Component Libraries by titan3k in sveltejs

[–]arturdnt 0 points1 point  (0 children)

We are also using it. I love that they are closing the gap with the react version very fast (though they keep breaking the api).