addDep() — vue Function Reference
Architecture documentation for the addDep() function in watcher.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD f805d2e4_a8a7_92e5_a28a_dee5d524a416["addDep()"] 247d5ee1_24dd_37b3_36e4_32e187a4aa0b["addSub()"] f805d2e4_a8a7_92e5_a28a_dee5d524a416 -->|calls| 247d5ee1_24dd_37b3_36e4_32e187a4aa0b style f805d2e4_a8a7_92e5_a28a_dee5d524a416 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/observer/watcher.ts lines 160–169
addDep(dep: Dep) {
const id = dep.id
if (!this.newDepIds.has(id)) {
this.newDepIds.add(id)
this.newDeps.push(dep)
if (!this.depIds.has(id)) {
dep.addSub(this)
}
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does addDep() do?
addDep() is a function in the vue codebase.
What does addDep() call?
addDep() calls 1 function(s): addSub.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free