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

Function mountJob

packages/runtime-core/src/components/Teleport.ts:161–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159
160 const queuePendingMount = (vnode: TeleportVNode) => {
161 const mountJob: SchedulerJob = () => {
162 if (pendingMounts.get(vnode) !== mountJob) return
163 pendingMounts.delete(vnode)
164 if (isTeleportDisabled(vnode.props)) {
165 // Use the current parent of the placeholder instead of the
166 // captured `container`, which may be stale if Suspense has moved
167 // the branch to a different container during resolve.
168 const mountContainer = parentNode(vnode.el!) || container
169 mount(vnode, mountContainer, vnode.anchor!)
170 updateCssVars(vnode, true)
171 }
172 mountToTarget(vnode)
173 }
174 pendingMounts.set(vnode, mountJob)
175 queuePostRenderEffect(mountJob, parentSuspense)
176 }

Callers

nothing calls this directly

Calls 6

isTeleportDisabledFunction · 0.85
parentNodeFunction · 0.85
updateCssVarsFunction · 0.85
mountToTargetFunction · 0.85
mountFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected