removeSub() — vue Function Reference
Architecture documentation for the removeSub() function in dep.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 71412ba4_532f_1375_76d1_d590f5ac440b["removeSub()"] 51ccfbf4_b0f4_5e67_95c4_8fb00dbc72df["cleanupDeps()"] 51ccfbf4_b0f4_5e67_95c4_8fb00dbc72df -->|calls| 71412ba4_532f_1375_76d1_d590f5ac440b 548462f9_f5ae_6335_80f2_a5f5b9fdf922["teardown()"] 548462f9_f5ae_6335_80f2_a5f5b9fdf922 -->|calls| 71412ba4_532f_1375_76d1_d590f5ac440b style 71412ba4_532f_1375_76d1_d590f5ac440b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/observer/dep.ts lines 47–57
removeSub(sub: DepTarget) {
// #12696 deps with massive amount of subscribers are extremely slow to
// clean up in Chromium
// to workaround this, we unset the sub for now, and clear them on
// next scheduler flush.
this.subs[this.subs.indexOf(sub)] = null
if (!this._pending) {
this._pending = true
pendingCleanupDeps.push(this)
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does removeSub() do?
removeSub() is a function in the vue codebase.
What calls removeSub()?
removeSub() is called by 2 function(s): cleanupDeps, teardown.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free