swr-sync-storage
swr-sync-storage copied to clipboard
Request feature: Choose what key save in localstorage
Hi, if I use load more scroll, that will be much data in localstorage. I hope you can edit more to archive which key should we cache
I want something like this import { syncWithStorage } from "swr-sync-storage"; syncWithStorage("local",["key-i-want-to-save"]); // this key just in localstorage, not in session too. And regex will be more great i think syncWithStorage("session",["key-i-want-to-save"]);