• Work
  • Tinkering & Research
  • Posts
  • About
  • Contact

Brendan Matkin

  • Work
  • Tinkering & Research
  • Posts
  • About
  • Contact

Safe SvelteKit Stores

↗dev.to post

One of my favourite things about Svelte is the simplicity of svelte/store for state management - especially auto-subscribing to a writable store with the $ prefix. Stores make inter-component communication so clear and easy. However, using global stores the way they are frequently shown in the Svelte documentation can result in data leaking between clients in a SvelteKit application...