mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
feat: ✨ Add emoji preferences
This commit is contained in:
parent
dca7af4b0e
commit
6934a5758e
8 changed files with 125 additions and 153 deletions
|
|
@ -2,10 +2,6 @@ import type { Client } from "@versia/client";
|
|||
import type { RolePermission } from "@versia/client/types";
|
||||
|
||||
export const useCacheRefresh = (client: MaybeRef<Client | null>) => {
|
||||
if (import.meta.server) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Refresh custom emojis and instance data and me on every reload
|
||||
watch(
|
||||
[identity, client],
|
||||
|
|
@ -67,6 +63,6 @@ export const useCacheRefresh = (client: MaybeRef<Client | null>) => {
|
|||
}
|
||||
});
|
||||
},
|
||||
{ flush: "sync" },
|
||||
{ flush: "sync", immediate: true },
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue