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

Function setBlockTracking

packages/runtime-core/src/vnode.ts:315–322  ·  view source on GitHub ↗
(value: number, inVOnce = false)

Source from the content-addressed store, hash-verified

313 * @private
314 */
315export function setBlockTracking(value: number, inVOnce = false): void {
316 isBlockTreeEnabled += value
317 if (value < 0 && currentBlock && inVOnce) {
318 // mark current block so it doesn't take fast path and skip possible
319 // nested components during unmount
320 currentBlock.hasOnce = true
321 }
322}
323
324function setupBlock(vnode: VNode) {
325 // save current block children on the block vnode

Callers 4

renderFnWithContextFunction · 0.90
hFunction · 0.90
vnode.spec.tsFile · 0.90
renderFunction · 0.85

Calls

no outgoing calls

Tested by 1

renderFunction · 0.68