Reactive functions in Svelte
• 6 min read
I am a huge fan of reactive declarations and reactive statements in Svelte, but i always felt that there was something missing. Recently I had an “aha”-moment, which made me realise something that filled this missing piece for me.
Svelte’s store system is an elegant, but low-level, implementation of a fully fletched state management system. Stores themselves are not very complex, and most of the “magic” behind reactive global state in Svelte is caused by Svelte’s internal reactivity model.