DEV Community

Discussion on: Svelte Reactivity and Stores

thevediwho profile image
Vaibhav Dwivedi

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

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 ;).