perf(client): use shallowRef for html element ref
This commit is contained in:
@@ -59,7 +59,7 @@ const emit = defineEmits<{
|
||||
(ev: 'change-active-state', v: boolean): void;
|
||||
}>();
|
||||
|
||||
let body = $ref<HTMLDivElement>();
|
||||
let body = $shallowRef<HTMLDivElement>();
|
||||
|
||||
let dragging = $ref(false);
|
||||
watch($$(dragging), v => os.deckGlobalEvents.emit(v ? 'column.dragStart' : 'column.dragEnd'));
|
||||
|
Reference in New Issue
Block a user