appleboy / react-recaptcha

A react.js reCAPTCHA for Google
https://www.google.com/recaptcha/intro/index.html
BSD 3-Clause "New" or "Revised" License
635 stars 97 forks source link

setInterval in constructor causes memory leak on server #247

Closed joxerTMD closed 6 years ago

joxerTMD commented 6 years ago

Hello there! setInterval in constructor causes memory leak on server because componentWillUnmount() and therefore clearInterval() is not being called during server rendering. I've prepared #246 to fix this. It would be cool if you merge it as soon as possible :)

appleboy commented 6 years ago

merged. Done.

appleboy commented 6 years ago

bump to 2.3.10