Home / Function/ initComputed() — vue Function Reference

initComputed() — vue Function Reference

Architecture documentation for the initComputed() function in extend.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  bbde495f_48f3_a910_410f_28718d2c8ee1["initComputed()"]
  a14b0815_48fb_998a_d3d7_ac867ed1d7f9["extend.ts"]
  bbde495f_48f3_a910_410f_28718d2c8ee1 -->|defined in| a14b0815_48fb_998a_d3d7_ac867ed1d7f9
  ce425d9f_05ad_8df9_9c70_37c35a2bdb0e["initExtend()"]
  ce425d9f_05ad_8df9_9c70_37c35a2bdb0e -->|calls| bbde495f_48f3_a910_410f_28718d2c8ee1
  7b0a7d03_cfef_5efb_b868_2bd41b0196d7["initComputed()"]
  bbde495f_48f3_a910_410f_28718d2c8ee1 -->|calls| 7b0a7d03_cfef_5efb_b868_2bd41b0196d7
  d78d0fa2_2aba_d914_c67d_4cb1b5a75d62["defineComputed()"]
  bbde495f_48f3_a910_410f_28718d2c8ee1 -->|calls| d78d0fa2_2aba_d914_c67d_4cb1b5a75d62
  style bbde495f_48f3_a910_410f_28718d2c8ee1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/global-api/extend.ts lines 89–94

function initComputed(Comp: typeof Component) {
  const computed = Comp.options.computed
  for (const key in computed) {
    defineComputed(Comp.prototype, key, computed[key])
  }
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does initComputed() do?
initComputed() is a function in the vue codebase, defined in src/core/global-api/extend.ts.
Where is initComputed() defined?
initComputed() is defined in src/core/global-api/extend.ts at line 89.
What does initComputed() call?
initComputed() calls 2 function(s): defineComputed, initComputed.
What calls initComputed()?
initComputed() is called by 1 function(s): initExtend.

Analyze Your Own Codebase

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

Try Supermodel Free