getData() — vue Function Reference
Architecture documentation for the getData() function in state.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD ce80ecf6_59b6_ce14_f480_11914f02b5b1["getData()"] 910d3a96_5984_cf85_40a3_47933bd75818["state.ts"] ce80ecf6_59b6_ce14_f480_11914f02b5b1 -->|defined in| 910d3a96_5984_cf85_40a3_47933bd75818 71dd8c80_4600_3a78_a4ac_26befd4658cc["initData()"] 71dd8c80_4600_3a78_a4ac_26befd4658cc -->|calls| ce80ecf6_59b6_ce14_f480_11914f02b5b1 46145e02_0be2_a179_3c66_d786e8df82f3["pushTarget()"] ce80ecf6_59b6_ce14_f480_11914f02b5b1 -->|calls| 46145e02_0be2_a179_3c66_d786e8df82f3 f641f94c_5096_9084_3285_10f3d148c139["popTarget()"] ce80ecf6_59b6_ce14_f480_11914f02b5b1 -->|calls| f641f94c_5096_9084_3285_10f3d148c139 style ce80ecf6_59b6_ce14_f480_11914f02b5b1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/instance/state.ts lines 168–179
export function getData(data: Function, vm: Component): any {
// #7573 disable dep collection when invoking data getters
pushTarget()
try {
return data.call(vm, vm)
} catch (e: any) {
handleError(e, vm, `data()`)
return {}
} finally {
popTarget()
}
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does getData() do?
getData() is a function in the vue codebase, defined in src/core/instance/state.ts.
Where is getData() defined?
getData() is defined in src/core/instance/state.ts at line 168.
What does getData() call?
getData() calls 2 function(s): popTarget, pushTarget.
What calls getData()?
getData() is called by 1 function(s): initData.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free