summaryrefslogtreecommitdiff
path: root/packages/client/src/components/global
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-08-06 19:20:53 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-08-06 19:20:53 +0900
commitc4830dcf3a7bad6f1c90b453b012712ea1e40908 (patch)
treee0241d14076b8d2a7a2f49b9192e9308df758c36 /packages/client/src/components/global
parent12.118.0-beta.5 (diff)
downloadmisskey-c4830dcf3a7bad6f1c90b453b012712ea1e40908.tar.gz
misskey-c4830dcf3a7bad6f1c90b453b012712ea1e40908.tar.bz2
misskey-c4830dcf3a7bad6f1c90b453b012712ea1e40908.zip
perf(client): use shallowRef as possible
Diffstat (limited to 'packages/client/src/components/global')
-rw-r--r--packages/client/src/components/global/time.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/client/src/components/global/time.vue b/packages/client/src/components/global/time.vue
index 801490225b..f72b153f56 100644
--- a/packages/client/src/components/global/time.vue
+++ b/packages/client/src/components/global/time.vue
@@ -20,7 +20,7 @@ const props = withDefaults(defineProps<{
const _time = typeof props.time === 'string' ? new Date(props.time) : props.time;
const absolute = _time.toLocaleString();
-let now = $ref(new Date());
+let now = $shallowRef(new Date());
const relative = $computed(() => {
const ago = (now.getTime() - _time.getTime()) / 1000/*ms*/;
return (