prefresh
prefresh copied to clipboard
Memory leak when passing a signal content to a component props
A minimal reproduction of a memory leak when passing a signal's value (content) to a component as a prop. https://stackblitz.com/edit/vitejs-vite-gxocdd?file=src%2Fapp.tsx
I used setInterval
for the reproduction, but in more realistic cases we would usually have some scroll or wheel event listeners which make the same load. These MBs are not and cannot be garbage collected: