proxy() — vue Function Reference
Architecture documentation for the proxy() function in state.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 116cddf0_8d78_82e1_fbc7_5754697f785e["proxy()"] ecc8a243_a0d7_dbfe_d0d7_8a89943041cf["initProps()"] ecc8a243_a0d7_dbfe_d0d7_8a89943041cf -->|calls| 116cddf0_8d78_82e1_fbc7_5754697f785e e399206d_b17d_5ac0_8caa_dab87591e37e["initProps()"] e399206d_b17d_5ac0_8caa_dab87591e37e -->|calls| 116cddf0_8d78_82e1_fbc7_5754697f785e a06d5e75_873a_9e84_3260_353c9ffb6493["initData()"] a06d5e75_873a_9e84_3260_353c9ffb6493 -->|calls| 116cddf0_8d78_82e1_fbc7_5754697f785e style 116cddf0_8d78_82e1_fbc7_5754697f785e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/instance/state.ts lines 42–50
export function proxy(target: Object, sourceKey: string, key: string) {
sharedPropertyDefinition.get = function proxyGetter() {
return this[sourceKey][key]
}
sharedPropertyDefinition.set = function proxySetter(val) {
this[sourceKey][key] = val
}
Object.defineProperty(target, key, sharedPropertyDefinition)
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does proxy() do?
proxy() is a function in the vue codebase.
What calls proxy()?
proxy() is called by 3 function(s): initData, initProps, initProps.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free