Skip to content

Commit 60e05ef

Browse files
LinusBorgThorsten Luenborg
and
Thorsten Luenborg
authored
fix(runtime-core): ensure app instance can be garbage collected after unmount (close #2907) (#2909)
close #2907 Co-authored-by: Thorsten Luenborg <[email protected]>
1 parent d5cce47 commit 60e05ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/runtime-core/src/apiCreateApp.ts

+1
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ export function createAppAPI<HostElement>(
272272
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
273273
devtoolsUnmountApp(app)
274274
}
275+
delete app._container.__vue_app__
275276
} else if (__DEV__) {
276277
warn(`Cannot unmount an app that is not mounted.`)
277278
}

0 commit comments

Comments
 (0)