mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
perf: ♻️ Use global instance of composable instead of an instance per component for identities, client and settings
This commit is contained in:
parent
f1ada1745d
commit
3428e4b5b6
38 changed files with 104 additions and 131 deletions
|
|
@ -8,8 +8,6 @@
|
|||
import type { Status } from "@lysand-org/client/types";
|
||||
import Timeline from "./timeline.vue";
|
||||
|
||||
const client = useClient();
|
||||
|
||||
const props = defineProps<{
|
||||
id: string;
|
||||
}>();
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
import type { Status } from "@lysand-org/client/types";
|
||||
import { useHomeTimeline } from "~/composables/HomeTimeline";
|
||||
import Timeline from "./timeline.vue";
|
||||
const client = useClient();
|
||||
|
||||
const {
|
||||
error,
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
import type { Status } from "@lysand-org/client/types";
|
||||
import { useLocalTimeline } from "~/composables/LocalTimeline";
|
||||
import Timeline from "./timeline.vue";
|
||||
const client = useClient();
|
||||
|
||||
const {
|
||||
error,
|
||||
|
|
|
|||
|
|
@ -9,8 +9,6 @@ import type { Notification } from "@lysand-org/client/types";
|
|||
import { useNotificationTimeline } from "~/composables/NotificationTimeline";
|
||||
import Timeline from "./timeline.vue";
|
||||
|
||||
const client = useClient();
|
||||
|
||||
const {
|
||||
error,
|
||||
hasReachedEnd,
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
import type { Status } from "@lysand-org/client/types";
|
||||
import { usePublicTimeline } from "~/composables/PublicTimeline";
|
||||
import Timeline from "./timeline.vue";
|
||||
const client = useClient();
|
||||
|
||||
const {
|
||||
error,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue