beforeDestroy()

in packages/vue/vue-application/src/Application.js [136:148]


  beforeDestroy() {
    this.addThingToDo('unmount', () => {
      if (this.app && this.app.parcel && this.app.parcel.getStatus() === "MOUNTED") {
        return unmount(this.app);
      }
    })
  
    if (this.createdDomElement && this.createdDomElement.parentNode) {
      this.createdDomElement.parentNode.removeChild(this.createdDomElement)
    }
  
    this.unmounted = true
  },