Home / Function/ cleanupDeps() — vue Function Reference

cleanupDeps() — vue Function Reference

Architecture documentation for the cleanupDeps() function in dep.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  12ec28f6_876b_9f0a_7041_d93bca97acc0["cleanupDeps()"]
  f38f69bd_ced9_dfe2_9765_93fb59cbed89["cleanupDeps()"]
  f38f69bd_ced9_dfe2_9765_93fb59cbed89 -->|calls| 12ec28f6_876b_9f0a_7041_d93bca97acc0
  9ee171a6_a4b8_25d2_3782_d5fdbe38bfec["flushSchedulerQueue()"]
  9ee171a6_a4b8_25d2_3782_d5fdbe38bfec -->|calls| 12ec28f6_876b_9f0a_7041_d93bca97acc0
  style 12ec28f6_876b_9f0a_7041_d93bca97acc0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/observer/dep.ts lines 8–15

export const cleanupDeps = () => {
  for (let i = 0; i < pendingCleanupDeps.length; i++) {
    const dep = pendingCleanupDeps[i]
    dep.subs = dep.subs.filter(s => s)
    dep._pending = false
  }
  pendingCleanupDeps.length = 0
}

Domain

Subdomains

Frequently Asked Questions

What does cleanupDeps() do?
cleanupDeps() is a function in the vue codebase.
What calls cleanupDeps()?
cleanupDeps() is called by 2 function(s): cleanupDeps, flushSchedulerQueue.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free