perf(client): use shallowRef for html element ref
This commit is contained in:
@@ -24,7 +24,7 @@ const props = withDefaults(defineProps<{
|
||||
cover: true,
|
||||
});
|
||||
|
||||
const canvas = $ref<HTMLCanvasElement>();
|
||||
const canvas = $shallowRef<HTMLCanvasElement>();
|
||||
let loaded = $ref(false);
|
||||
|
||||
function draw() {
|
||||
|
Reference in New Issue
Block a user