resolveProvided() — vue Function Reference
Architecture documentation for the resolveProvided() function in apiInject.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 082a89ce_8c04_7187_4f22_a3ba3d2afd0b["resolveProvided()"] 43edafdf_a4b3_d737_84e5_b3a7f3bd233b["apiInject.ts"] 082a89ce_8c04_7187_4f22_a3ba3d2afd0b -->|defined in| 43edafdf_a4b3_d737_84e5_b3a7f3bd233b 2f9443d7_a796_b219_1f56_00ff5db7c955["provide()"] 2f9443d7_a796_b219_1f56_00ff5db7c955 -->|calls| 082a89ce_8c04_7187_4f22_a3ba3d2afd0b style 082a89ce_8c04_7187_4f22_a3ba3d2afd0b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/v3/apiInject.ts lines 18–31
export function resolveProvided(vm: Component): Record<string, any> {
// by default an instance inherits its parent's provides object
// but when it needs to provide values of its own, it creates its
// own provides object using parent provides object as prototype.
// this way in `inject` we can simply look up injections from direct
// parent and let the prototype chain do the work.
const existing = vm._provided
const parentProvides = vm.$parent && vm.$parent._provided
if (parentProvides === existing) {
return (vm._provided = Object.create(parentProvides))
} else {
return existing
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does resolveProvided() do?
resolveProvided() is a function in the vue codebase, defined in src/v3/apiInject.ts.
Where is resolveProvided() defined?
resolveProvided() is defined in src/v3/apiInject.ts at line 18.
What calls resolveProvided()?
resolveProvided() is called by 1 function(s): provide.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free