run() — vue Function Reference
Architecture documentation for the run() function in effectScope.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD f90cd36d_8da0_2497_bd42_a0d1067ec3eb["run()"] eb15026c_5696_e629_0e8f_4bc0a98f7d98["run()"] eb15026c_5696_e629_0e8f_4bc0a98f7d98 -->|calls| f90cd36d_8da0_2497_bd42_a0d1067ec3eb style f90cd36d_8da0_2497_bd42_a0d1067ec3eb 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
Called By
Source
Frequently Asked Questions
What does run() do?
run() is a function in the vue codebase.
What calls run()?
run() is called by 1 function(s): run.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free