DEV Community

loading...

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

Collapse
danawoodman profile image
Dana Woodman Author

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)