We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc459da commit 7c7ebb0Copy full SHA for 7c7ebb0
1 file changed
packages/vue-node-registry/src/view.ts
@@ -88,8 +88,21 @@ export class VueNodeView extends HtmlNode {
88
89
if (root) {
90
const nodeConfig = getVueNodeConfig(model.type, graphModel)
91
- if (!nodeConfig) return
+ if (!nodeConfig) {
92
+ // No registered config for this node type; ensure any existing Teleport mount is cleaned up
93
+ if (isVue3 && isActive()) {
94
+ disconnect(this.targetId())
95
+ }
96
+ return
97
98
const { component } = nodeConfig
99
+ if (!component) {
100
+ // Config exists but has no component; also clean up any existing Teleport mount
101
102
103
104
105
106
if (component) {
107
if (isVue2) {
108
const Vue = Vue2 as any
0 commit comments