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

Function emptyPlaceholder

packages/runtime-core/src/components/BaseTransition.ts:501–507  ·  view source on GitHub ↗
(vnode: VNode)

Source from the content-addressed store, hash-verified

499// placeholder with empty content to avoid the KeepAlive instance from being
500// unmounted.
501function emptyPlaceholder(vnode: VNode): VNode | undefined {
502 if (isKeepAlive(vnode)) {
503 vnode = cloneVNode(vnode)
504 vnode.children = null
505 return vnode
506 }
507}
508
509function getInnerChild(vnode: VNode): VNode | undefined {
510 if (!isKeepAlive(vnode)) {

Callers 1

setupFunction · 0.85

Calls 2

isKeepAliveFunction · 0.90
cloneVNodeFunction · 0.90

Tested by

no test coverage detected