Closed beilunyang closed 3 days ago
Hi guy, I was reviewing the codebase and noticed that the AnimatedQrCode component was calling setInterval in the useEffect hook but not clearInterval, which was causing a memory leak, so I fixed it!
AnimatedQrCode
setInterval
useEffect
clearInterval
Hi guy, I was reviewing the codebase and noticed that the
AnimatedQrCode
component was callingsetInterval
in theuseEffect
hook but notclearInterval
, which was causing a memory leak, so I fixed it!