all InfoSec news
Safe SvelteKit Stores for SSR
May 8, 2023, 8:24 p.m. | Brendan Matkin
DEV Community dev.to
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.
BTW: I don't explain how to use stores here. There are oodles of tutorials (edit: this is a good one …
auto clients communication data documentation global management result safe state store svelte sveltekit things
More from dev.to / DEV Community
Jobs in InfoSec / Cybersecurity
Information Security Engineers
@ D. E. Shaw Research | New York City
Technology Security Analyst
@ Halton Region | Oakville, Ontario, Canada
Senior Cyber Security Analyst
@ Valley Water | San Jose, CA
Security Engineer II - Java Fullstack, AWS
@ JPMorgan Chase & Co. | Hyderabad, Telangana, India
Consultant Cybersécurité Industrielle (F-H-X)
@ Bureau Veritas Group | COURBEVOIE, Ile-de-France, FR
Security Engineer II
@ Syniverse | Costa Rica