DEV Community

loading...

Discussion on: Svelte Reactivity and Stores

Collapse
thevediwho profile image
Vaibhav Dwivedi

Great article. In what cases, should we be using the stores?

Collapse
bigi profile image
Bigi Lui Author

I think stores are great as a global state holder for your application (usually SPA, but can be just a simple app without pages too).

I think of it as something like a global variable accessible by all components within your Svelte app, and that its value changes are automatically/reactively reflected in all your components (when done right ;).