With normal Svelte stores their value is lost if the user refreshes the browser. This demonstrates persisting changes to a writable store in sessionStorage so they are automatically restored on refresh.
To run this:
npm install
npm run dev
- Add some numbers.
- Refresh the browser to see that they are not lost.