Question · Svelte and SvelteKit course · Module 8: Stores
Stores or $state
When is it better to use Stores instead of $state?
Answer options
- For local component state
- For complex, asynchronous data streams, or when a library provides a store
- Always - Stores are better
- Never - $state has replaced Stores
You can check the correct answer by solving this task in the CodeWorlds game.