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