mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-02 08:36:00 +02:00
perf(client): use shallowRef instead of ref for template reference
This commit is contained in:
@@ -31,8 +31,8 @@ const emit = defineEmits<{
|
||||
(ev: 'closed'): void;
|
||||
}>();
|
||||
|
||||
let modal = $ref<InstanceType<typeof MkModal>>();
|
||||
let form = $ref<InstanceType<typeof MkPostForm>>();
|
||||
let modal = $shallowRef<InstanceType<typeof MkModal>>();
|
||||
let form = $shallowRef<InstanceType<typeof MkPostForm>>();
|
||||
|
||||
function onPosted() {
|
||||
modal.close({
|
||||
|
||||
Reference in New Issue
Block a user