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

Function getNextHostNode

packages/runtime-core/src/renderer.ts:2403–2416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2401 }
2402
2403 const getNextHostNode: NextFn = vnode => {
2404 if (vnode.shapeFlag & ShapeFlags.COMPONENT) {
2405 return getNextHostNode(vnode.component!.subTree)
2406 }
2407 if (__FEATURE_SUSPENSE__ && vnode.shapeFlag & ShapeFlags.SUSPENSE) {
2408 return vnode.suspense!.next()
2409 }
2410 const el = hostNextSibling((vnode.anchor || vnode.el)!)
2411 // #9071, #9313
2412 // teleported content can mess up nextSibling searches during patch so
2413 // we need to skip them during nextSibling search
2414 const teleportEnd = el && el[TeleportEndKey]
2415 return teleportEnd ? hostNextSibling(teleportEnd) : el
2416 }
2417
2418 let isFlushing = false
2419 const render: RootRenderFunction = (vnode, container, namespace) => {

Callers 2

patchFunction · 0.85
componentUpdateFnFunction · 0.85

Calls 1

nextMethod · 0.80

Tested by

no test coverage detected