Closed atombender closed 5 years ago
Thank you for the PR, but I fixed it in a little bit different manner, you can see it here: https://github.com/Stanko/react-animate-height/commit/1d2324a071966677155e6b627c698b6583454d5e
AFAIK checking if component is mounted is considered an antipattern: https://reactjs.org/blog/2015/12/16/ismounted-antipattern.html
Cheers!
No worries, thanks for the fix. I wasn't using isMounted()
, though, but in fact one of the solutions recommended in that article. 🙂
This should fix #82.