modern-fetch-with-svelte
modern-fetch-with-svelte copied to clipboard
use localstorage
I watched your Svelte Summit talk. Very useful!
Just wanted to suggest using localstorage instead of map because it will retain the cache across page reloads & browser tabs.
Also, would you consider posting to NPM? A really simple SWR fetch lib would be great for Svelte ecosystem. Even though it's short, a one line import is even better!