Home / Function/ depend() — vue Function Reference

depend() — vue Function Reference

Architecture documentation for the depend() function in watcher.ts from the vue codebase.

Function typescript CoreRuntime Observer calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  4fb245e9_ef0c_c389_c113_747330caa63e["depend()"]
  e7f4f452_deed_8a48_b501_c415a06a6251["Watcher"]
  4fb245e9_ef0c_c389_c113_747330caa63e -->|defined in| e7f4f452_deed_8a48_b501_c415a06a6251
  1b10e00d_02e6_305e_b4ad_0e11475c3139["doWatch()"]
  1b10e00d_02e6_305e_b4ad_0e11475c3139 -->|calls| 4fb245e9_ef0c_c389_c113_747330caa63e
  94a80262_5bce_62f3_1f0f_6faf27d0f66d["createComputedGetter()"]
  94a80262_5bce_62f3_1f0f_6faf27d0f66d -->|calls| 4fb245e9_ef0c_c389_c113_747330caa63e
  127eb37f_bb82_724e_10d1_24e519f60aab["depend()"]
  4fb245e9_ef0c_c389_c113_747330caa63e -->|calls| 127eb37f_bb82_724e_10d1_24e519f60aab
  style 4fb245e9_ef0c_c389_c113_747330caa63e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/observer/watcher.ts lines 253–258

  depend() {
    let i = this.deps.length
    while (i--) {
      this.deps[i].depend()
    }
  }

Domain

Subdomains

Calls

Frequently Asked Questions

What does depend() do?
depend() is a function in the vue codebase, defined in src/core/observer/watcher.ts.
Where is depend() defined?
depend() is defined in src/core/observer/watcher.ts at line 253.
What does depend() call?
depend() calls 1 function(s): depend.
What calls depend()?
depend() is called by 2 function(s): createComputedGetter, doWatch.

Analyze Your Own Codebase

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

Try Supermodel Free