mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 11:39:16 +01:00
fix: 🐛 Fixes with not refreshing localStorage me value
This commit is contained in:
parent
14a37d3585
commit
32c13d4c99
4 changed files with 25 additions and 7 deletions
7
composables/CustomEmojis.ts
Normal file
7
composables/CustomEmojis.ts
Normal 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", []);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue