Explain how Vue handles reactivity with arrays and what issues may arise.

Vue 2’s reactivity doesn’t detect direct array mutations (like assigning a new index) due to Object.defineProperty limitations. In Vue 3, Proxy-based reactivity eliminates this issue by intercepting all operations, but methods like push or splice are still preferred.