tonkeeper / tonkeeper-web

Tonkeeper Web is a multi-platform open-source non-custodial TON crypto wallet and gateway to blockchain dApps
http://tonkeeper.com
Apache License 2.0
243 stars 98 forks source link

fix: memory leak in qrCodeView.tsx by clearing interval timer #300

Closed beilunyang closed 3 days ago

beilunyang commented 5 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!