fix: 🐛 Fixes with not refreshing localStorage me value

This commit is contained in:
Jesse Wierzbinski 2024-05-12 17:44:32 -10:00
parent 14a37d3585
commit 32c13d4c99
No known key found for this signature in database
4 changed files with 25 additions and 7 deletions

View file

@ -0,0 +1,7 @@
import type { Mastodon } from "megalodon";
import type { Emoji } from "~/types/mastodon/emoji";
export const useCustomEmojis = (client: MaybeRef<Mastodon | null>) => {
// Cache in localStorage
return useLocalStorage<Emoji[]>("lysand:custom_emojis", []);
};