Watch: Find why my app gets slower the longer it's open | Vovy
Watch Vovy do it on a Mac: "My app gets laggy after a while and the tab eats memory, why?". Vovy records your app's memory in Chrome DevTools, takes heap snapshots before and after, and pins the leak to the component that never cleans up.
"My app gets laggy after a while and the tab eats memory, why?"
Vovy records your app's memory in Chrome DevTools, takes heap snapshots before and after, and pins the leak to the component that never cleans up.
What happens in the video
- Watch memory live: Vovy opens Chrome's Performance monitor and watches JS heap size while it clicks around your app the way a user would.
- Take heap snapshots: In the Memory tab it takes a snapshot, repeats the same action ten times, and takes another. A leak shows as memory that never comes back down.
- Compare the snapshots: It uses the Comparison view to find objects that keep piling up, like detached DOM nodes or duplicated listeners.
- Find the cleanup bug: Cursor searches for useEffect hooks that add intervals, listeners or subscriptions without returning a cleanup function.
- Fix and confirm memory stays flat: After the fix, Vovy repeats the test and shows a chart of memory over time, before and after.
Read the step-by-step guideLoading...