mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-03 12:36:06 +02:00
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