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

Function unmount

packages/runtime-core/src/apiCreateApp.ts:431–447  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

429 },
430
431 unmount() {
432 if (isMounted) {
433 callWithAsyncErrorHandling(
434 pluginCleanupFns,
435 app._instance,
436 ErrorCodes.APP_UNMOUNT_CLEANUP,
437 )
438 render(null, app._container)
439 if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
440 app._instance = null
441 devtoolsUnmountApp(app)
442 }
443 delete app._container.__vue_app__
444 } else if (__DEV__) {
445 warn(`Cannot unmount an app that is not mounted.`)
446 }
447 },
448
449 provide(key, value) {
450 if (__DEV__ && (key as string | symbol) in context.provides) {

Callers

nothing calls this directly

Calls 4

devtoolsUnmountAppFunction · 0.90
warnFunction · 0.90
renderFunction · 0.70

Tested by

no test coverage detected