chore: Performance optimizations
# What's changed? * Remove keys * Stabilize props * Force reset store on unmount
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user