Hey is a decentralized and permissionless social media app built with Lens Protocol 馃尶
at main 13 lines 324 B view raw
1import { Localstorage } from "@hey/data/storage"; 2 3const clearLocalStorage = (): void => { 4 const storesToClear = Object.values(Localstorage).filter( 5 (store) => store !== Localstorage.SearchStore 6 ); 7 8 for (const store of storesToClear) { 9 localStorage.removeItem(store); 10 } 11}; 12 13export default clearLocalStorage;