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

Function toggleRecurse

packages/runtime-core/src/renderer.ts:2488–2499  ·  view source on GitHub ↗
(
  { effect, job }: ComponentInternalInstance,
  allowed: boolean,
)

Source from the content-addressed store, hash-verified

2486}
2487
2488function toggleRecurse(
2489 { effect, job }: ComponentInternalInstance,
2490 allowed: boolean,
2491) {
2492 if (allowed) {
2493 effect.flags |= EffectFlags.ALLOW_RECURSE
2494 job.flags! |= SchedulerJobFlags.ALLOW_RECURSE
2495 } else {
2496 effect.flags &= ~EffectFlags.ALLOW_RECURSE
2497 job.flags! &= ~SchedulerJobFlags.ALLOW_RECURSE
2498 }
2499}
2500
2501export function needTransition(
2502 parentSuspense: SuspenseBoundary | null,

Callers 3

patchElementFunction · 0.85
componentUpdateFnFunction · 0.85
setupRenderEffectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected