swr-sync-storage icon indicating copy to clipboard operation
swr-sync-storage copied to clipboard

Request feature: Choose what key save in localstorage

Open IRediTOTO opened this issue 4 years ago • 0 comments

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"]);

IRediTOTO avatar Jun 03 '21 22:06 IRediTOTO