perf: ♻️ Use global instance of composable instead of an instance per component for identities, client and settings

This commit is contained in:
Jesse Wierzbinski 2024-07-21 15:33:32 +02:00
parent f1ada1745d
commit 3428e4b5b6
No known key found for this signature in database
38 changed files with 104 additions and 131 deletions

View file

@ -20,7 +20,6 @@ definePageMeta({
const element = ref<HTMLElement | null>(null);
const route = useRoute();
const client = useClient();
const uuid = route.params.uuid as string;
const note = useNote(client, uuid);

View file

@ -21,7 +21,6 @@ definePageMeta({
});
const route = useRoute();
const client = useClient();
const username = (route.params.username as string).startsWith("@")
? (route.params.username as string).substring(1)
: (route.params.username as string);