mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-07 01:04:03 +09:00
perf(client): use shallowRef instead of ref for template reference
This commit is contained in:
@ -56,7 +56,7 @@ const props = withDefaults(defineProps<{
|
||||
|
||||
let includingTypes = $computed(() => props.includingTypes || []);
|
||||
|
||||
const dialog = $ref<InstanceType<typeof XModalWindow>>();
|
||||
const dialog = $shallowRef<InstanceType<typeof XModalWindow>>();
|
||||
|
||||
let typesMap = $ref<Record<typeof notificationTypes[number], boolean>>({});
|
||||
let useGlobalSetting = $ref((includingTypes === null || includingTypes.length === 0) && props.showGlobalToggle);
|
||||
|
Reference in New Issue
Block a user