]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(runtime-core): ensure app instance can be garbage collected after unmount (close...
authorThorsten Lünborg <t.luenborg@googlemail.com>
Wed, 3 Feb 2021 18:09:20 +0000 (19:09 +0100)
committerGitHub <noreply@github.com>
Wed, 3 Feb 2021 18:09:20 +0000 (19:09 +0100)
close #2907

Co-authored-by: Thorsten Luenborg <t.luneborg@googlemail.com>
packages/runtime-core/src/apiCreateApp.ts

index bcb2fec1c32a352901372175266618b86b92edc5..2896937045ed48b8bcc3c1d8aaa1d4a53388a93a 100644 (file)
@@ -272,6 +272,7 @@ export function createAppAPI<HostElement>(
           if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
             devtoolsUnmountApp(app)
           }
+          delete app._container.__vue_app__
         } else if (__DEV__) {
           warn(`Cannot unmount an app that is not mounted.`)
         }