MCPcopy
hub / github.com/vuejs/core / disconnectedCallback

Method disconnectedCallback

packages/runtime-dom/src/apiCustomElement.ts:343–361  ·  packages/runtime-dom/src/apiCustomElement.ts::VueElement.disconnectedCallback
()

Source from the content-addressed store, hash-verified

341 }
342
343 disconnectedCallback(): void {
344 this._connected = false
345 nextTick(() => {
346 if (!this._connected) {
347 if (this._ob) {
348 this._ob.disconnect()
349 this._ob = null
350 }
351 class="cm">// unmount
352 this._app && this._app.unmount()
353 if (this._instance) this._instance.ce = undefined
354 this._app = this._instance = null
355 if (this._teleportTargets) {
356 this._teleportTargets.clear()
357 this._teleportTargets = undefined
358 }
359 }
360 })
361 }
362
363 private _processMutations(mutations: MutationRecord[]) {
364 for (const m of mutations) {

Callers

nothing calls this directly

Calls 2

nextTickFunction · 0.90
unmountMethod · 0.65

Tested by

no test coverage detected