How does Vue 3's Reactivity System work under the hood?
Updated May 4, 2026
Short answer
Vue 3 uses ES6 Proxies to intercept object operations and track dependencies via a Global WeakMap.
Deep explanation
When a reactive object is accessed (getter), Vue's 'track' function records the current 'effect' (the function running, like a render or watcher). When the object is modified (setter), the 'trigger' function finds all stored effects for that property and executes them. Because it uses Proxies, it can detect property additions/deletions and array index changes, which was a major limitation in Vue 2's Object.defineProperty.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro