triggerRef() — vue Function Reference
Architecture documentation for the triggerRef() function in ref.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 61e1f9ae_c4e6_52e8_44cc_d26a2aaf8c1a["triggerRef()"] a736e9c3_51fa_4ff8_f139_f83b45794e0f["notify()"] 61e1f9ae_c4e6_52e8_44cc_d26a2aaf8c1a -->|calls| a736e9c3_51fa_4ff8_f139_f83b45794e0f style 61e1f9ae_c4e6_52e8_44cc_d26a2aaf8c1a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/v3/reactivity/ref.ts lines 77–91
export function triggerRef(ref: Ref) {
if (__DEV__ && !ref.dep) {
warn(`received object is not a triggerable ref.`)
}
if (__DEV__) {
ref.dep &&
ref.dep.notify({
type: TriggerOpTypes.SET,
target: ref,
key: 'value'
})
} else {
ref.dep && ref.dep.notify()
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does triggerRef() do?
triggerRef() is a function in the vue codebase.
What does triggerRef() call?
triggerRef() calls 1 function(s): notify.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free