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

Function remove

packages/runtime-core/src/renderer.ts:2104–2110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2102 } else {
2103 const { leave, delayLeave, afterLeave } = transition!
2104 const remove = () => {
2105 if (vnode.ctx!.isUnmounted) {
2106 hostRemove(el!)
2107 } else {
2108 hostInsert(el!, container, anchor)
2109 }
2110 }
2111 const performLeave = () => {
2112 // #13153 move kept-alive node before v-show transition leave finishes
2113 // it needs to call the leaving callback to ensure element's `display`

Callers 4

performLeaveFunction · 0.70
unmountFunction · 0.70
hydrateElementFunction · 0.70
handleMismatchFunction · 0.70

Calls 5

removeFragmentFunction · 0.85
removeStaticNodeFunction · 0.85
performLeaveFunction · 0.85
performRemoveFunction · 0.85
forEachMethod · 0.80

Tested by

no test coverage detected