Interview practice question
Memory usage grows the longer users keep the app open
Frontend Engineering · React · Experienced
Users who keep your single-page React app open all day report it getting slower, and memory keeps growing. How would you investigate?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Heap snapshots over time (DevTools Memory).
- Look for detached DOM nodes, growing arrays/caches.
- Missing effect cleanups, listeners, intervals.
- Unbounded caches/stores.
- Fix and verify with repeated scenario.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.