DEV Community

Discussion on: 🚀 Svelte Quick Tip: Connect a store to local storage

danawoodman profile image
Dana Woodman

Where are you running this? If it is in SvelteKit localStorage won't be defined so you'll have to only use the store in the browser as documented in the Kit docs (see "browser" variable)