chore: Performance optimizations

# What's changed?

* Remove keys
* Stabilize props
* Force reset store on unmount
This commit is contained in:
Braks
2022-04-24 13:34:22 +02:00
parent ad07b5b6ea
commit b6d8b57859
9 changed files with 73 additions and 44 deletions
+5 -1
View File
@@ -113,10 +113,14 @@ onMounted(() => {
if (edge.value.targetX !== targetX) edge.value.targetX = targetX
if (edge.value.targetY !== targetY) edge.value.targetY = targetY
},
{ immediate: true, deep: true },
{ immediate: true },
)
})
onUnmounted(() => {
edge.value = null
})
const slots = inject(Slots)
const name = ref(edge.value.type ?? 'default')