Careeroza
Finding Memory Leaks
Tools
- Chrome DevTools → Memory → take a heap snapshot, use the app (open/close a page many times), take another snapshot and compare.
- DevTools → Performance monitor: watch JS heap size and DOM node count.
- Keep StrictMode on: it mounts → unmounts → mounts in development, so missing cleanups show up early.
- ESLint
react-hooksrules catch missing dependencies.