run() — vue Function Reference
Architecture documentation for the run() function in effectScope.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD b30bbc11_9716_a61c_ae7f_4a3052b2a283["run()"] 15f3b57b_caa4_ff31_579b_0dcb115c7a9f["EffectScope"] b30bbc11_9716_a61c_ae7f_4a3052b2a283 -->|defined in| 15f3b57b_caa4_ff31_579b_0dcb115c7a9f style b30bbc11_9716_a61c_ae7f_4a3052b2a283 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/v3/reactivity/effectScope.ts lines 49–61
run<T>(fn: () => T): T | undefined {
if (this.active) {
const currentEffectScope = activeEffectScope
try {
activeEffectScope = this
return fn()
} finally {
activeEffectScope = currentEffectScope
}
} else if (__DEV__) {
warn(`cannot run an inactive effect scope.`)
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does run() do?
run() is a function in the vue codebase, defined in src/v3/reactivity/effectScope.ts.
Where is run() defined?
run() is defined in src/v3/reactivity/effectScope.ts at line 49.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free