notify() — vue Function Reference
Architecture documentation for the notify() function in dep.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 066df273_90c0_35dd_cd79_8e43c3f6c8ba["notify()"] 345b25ad_bb77_07cb_ecf5_8b82f12ddccd["defineReactive()"] 345b25ad_bb77_07cb_ecf5_8b82f12ddccd -->|calls| 066df273_90c0_35dd_cd79_8e43c3f6c8ba 1c6c2c60_cb0c_a3fc_17fe_30271386e3b6["set()"] 1c6c2c60_cb0c_a3fc_17fe_30271386e3b6 -->|calls| 066df273_90c0_35dd_cd79_8e43c3f6c8ba fdd41bd0_851f_d143_642f_dbe8762ae878["del()"] fdd41bd0_851f_d143_642f_dbe8762ae878 -->|calls| 066df273_90c0_35dd_cd79_8e43c3f6c8ba becf88af_0d85_7b6b_615d_62e92fb82199["triggerRef()"] becf88af_0d85_7b6b_615d_62e92fb82199 -->|calls| 066df273_90c0_35dd_cd79_8e43c3f6c8ba ed9e592d_d374_e542_fb6c_6a607c8ec505["customRef()"] ed9e592d_d374_e542_fb6c_6a607c8ec505 -->|calls| 066df273_90c0_35dd_cd79_8e43c3f6c8ba style 066df273_90c0_35dd_cd79_8e43c3f6c8ba fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/observer/dep.ts lines 71–91
notify(info?: DebuggerEventExtraInfo) {
// stabilize the subscriber list first
const subs = this.subs.filter(s => s) as DepTarget[]
if (__DEV__ && !config.async) {
// subs aren't sorted in scheduler if not running async
// we need to sort them now to make sure they fire in correct
// order
subs.sort((a, b) => a.id - b.id)
}
for (let i = 0, l = subs.length; i < l; i++) {
const sub = subs[i]
if (__DEV__ && info) {
sub.onTrigger &&
sub.onTrigger({
effect: subs[i],
...info
})
}
sub.update()
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does notify() do?
notify() is a function in the vue codebase.
What calls notify()?
notify() is called by 5 function(s): customRef, defineReactive, del, set, triggerRef.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free