Skip to content

Commit 61706a9

Browse files
committed
PIX-22 removed unused canvasref
1 parent 2c93431 commit 61706a9

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

client/src/views/PlayView.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { ref, onMounted } from 'vue'; // NEW: Importa onMounted
2+
import { onMounted } from 'vue'; // NEW: Importa onMounted
33
import { storeToRefs } from 'pinia';
44
import { useEditorStore } from '@/stores/editor.store';
55
import PixelCanvas from '@/components/editor/PixelCanvas.vue';
@@ -10,9 +10,6 @@ const store = useEditorStore();
1010
// NEW: Estraiamo isConnected per la UI
1111
const { width, height, pixels, palette, selectedColorIndex, isConnected, pixelUpdateEvent } = storeToRefs(store);
1212
13-
// Ref to call updatePixel
14-
const canvasRef = ref<InstanceType<typeof PixelCanvas> | null>(null);
15-
1613
// NEW: Quando la vista è montata, avviamo il motore Socket
1714
onMounted(() => {
1815
store.init();
@@ -33,7 +30,6 @@ onMounted(() => {
3330
<ColorSelector />
3431

3532
<PixelCanvas
36-
ref="canvasRef"
3733
:width="width"
3834
:height="height"
3935
:pixels="pixels"

0 commit comments

Comments
 (0)