Vue · Senior · Question 71 of 75
Why can a reactive array of 50,000 objects make filtering slow, and what helps?
- ✓Correct answer: Each access goes through proxies and is tracked; using
shallowRefand replacing the array on change avoids deep tracking - 2Arrays aren't reactive at all
- 3Filtering in Vue always needs Web Workers
Explanation
Read-only data rarely needs deep reactivity. markRaw objects or shallowRef cut overhead dramatically.