Tagged articles
7 articles
Page 1 of 1
JavaScript
JavaScript
Aug 17, 2025 · Frontend Development

Why Vue 3 Switched to Proxy: Overcoming Vue 2’s Reactivity Limits

Vue 3 replaces Vue 2’s Object.defineProperty‑based reactivity with Proxy, eliminating array method hacks, dynamic property constraints, and heavy initialization overhead, while delivering full array support, seamless property tracking, and improved performance, as illustrated by side‑by‑side code comparisons.

Object.definePropertyProxyReactivity
0 likes · 4 min read
Why Vue 3 Switched to Proxy: Overcoming Vue 2’s Reactivity Limits
JavaScript
JavaScript
Feb 17, 2025 · Frontend Development

Why Vue 3 Switched to Proxy: Overcoming Vue 2’s Reactivity Limits

Vue 2’s reactivity relied on Object.defineProperty, which struggled with array mutations, dynamic properties, and performance overhead, prompting the Vue 3 team to adopt Proxy for full array support, seamless property tracking, and lazy, more efficient reactive handling, as illustrated by code comparisons.

JavaScriptObject.definePropertyProxy
0 likes · 4 min read
Why Vue 3 Switched to Proxy: Overcoming Vue 2’s Reactivity Limits
Sohu Tech Products
Sohu Tech Products
Nov 20, 2024 · Frontend Development

Comparison of Vue 2 and Vue 3 Reactivity: Object.defineProperty vs Proxy

Vue 2 implements reactivity by adding individual getters and setters with Object.defineProperty, which works for existing properties but struggles with many fields and dynamic changes, whereas Vue 3 uses a Proxy to intercept all operations on an object, delivering higher performance, automatic handling of added or removed properties, and greater flexibility for complex data structures.

JavaScriptObject.definePropertyProxy
0 likes · 14 min read
Comparison of Vue 2 and Vue 3 Reactivity: Object.defineProperty vs Proxy
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 16, 2024 · Frontend Development

Performance Comparison of Vue3 Proxy vs Object.defineProperty for Reactive Systems

This article benchmarks Vue3's Proxy-based reactivity against the traditional Object.defineProperty approach across initialization, read, write, multiple object creation, and nested‑object scenarios, revealing where each technique excels and why Vue3 ultimately prefers Proxy despite nuanced performance trade‑offs.

JavaScriptObject.definePropertyProxy
0 likes · 10 min read
Performance Comparison of Vue3 Proxy vs Object.defineProperty for Reactive Systems
Goodme Frontend Team
Goodme Frontend Team
Feb 18, 2023 · Frontend Development

How to Build a Reactive System in JavaScript: From Object.defineProperty to Proxy

This article walks through creating a JavaScript reactive system for front‑end development, covering the classic Object.defineProperty approach, dependency tracking, Proxy‑based deep reactivity, integration with React hooks, performance tweaks, and advanced considerations such as async queues and compile‑time helpers.

Object.definePropertyProxyReact
0 likes · 17 min read
How to Build a Reactive System in JavaScript: From Object.defineProperty to Proxy
37 Mobile Game Tech Team
37 Mobile Game Tech Team
Jan 6, 2021 · Frontend Development

Build Your Own MVVM Framework from Scratch with JavaScript

This article walks through the complete implementation of a lightweight MVVM framework—covering Object.defineProperty data hijacking, proxying, template compilation, publish‑subscribe reactivity, two‑way binding, computed properties and lifecycle hooks—using plain JavaScript.

JavaScriptMVVMObject.defineProperty
0 likes · 14 min read
Build Your Own MVVM Framework from Scratch with JavaScript