createComputedGetter() — vue Function Reference
Architecture documentation for the createComputedGetter() function in state.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 5cb8f376_407a_c68e_8832_96939169e9e0["createComputedGetter()"] cba9a7a5_cb68_c483_2155_95fbf45613ad["defineComputed()"] cba9a7a5_cb68_c483_2155_95fbf45613ad -->|calls| 5cb8f376_407a_c68e_8832_96939169e9e0 d0456733_d7ef_e7d5_e71b_f85674bc99f2["evaluate()"] 5cb8f376_407a_c68e_8832_96939169e9e0 -->|calls| d0456733_d7ef_e7d5_e71b_f85674bc99f2 b6fb2fe6_1e20_8aa7_252b_c7c3e62b0e26["depend()"] 5cb8f376_407a_c68e_8832_96939169e9e0 -->|calls| b6fb2fe6_1e20_8aa7_252b_c7c3e62b0e26 style 5cb8f376_407a_c68e_8832_96939169e9e0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/instance/state.ts lines 256–277
function createComputedGetter(key) {
return function computedGetter() {
const watcher = this._computedWatchers && this._computedWatchers[key]
if (watcher) {
if (watcher.dirty) {
watcher.evaluate()
}
if (Dep.target) {
if (__DEV__ && Dep.target.onTrack) {
Dep.target.onTrack({
effect: Dep.target,
target: this,
type: TrackOpTypes.GET,
key
})
}
watcher.depend()
}
return watcher.value
}
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does createComputedGetter() do?
createComputedGetter() is a function in the vue codebase.
What does createComputedGetter() call?
createComputedGetter() calls 2 function(s): depend, evaluate.
What calls createComputedGetter()?
createComputedGetter() is called by 1 function(s): defineComputed.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free