Check memory leakage of react-pdf with vite
Run app locally or vercel build here
Steps
- Open Chrome task Manager (show
GPU Memorycolumn) GPU Memoryshould be ~ 1 MB- Press
Show pdfbutton. GPU Memory should jump to ~ 590 MB - Press
Hide pdfbutton.
Expected
GPU Memoryusage should drop back to ~ 2 MB
Actual
GPU Memoryusage remain at same high level ~ 590 MB
- React strict mode was switched off to not affect memory
- Hot reloading was switched off to not affect memory
- Newest versions of packages were used (vite, react, react-pdf)
- High Device Pixel Rate (10) was used to amplify an effect

