mderrick / react-html5video

A customizeable HTML5 Video React component with i18n and a11y.
http://mderrick.github.io/react-html5video/
MIT License
459 stars 123 forks source link

setState warning when Video is unmounted #79

Closed untemps closed 7 years ago

untemps commented 7 years ago

Hi, It seems that updateState is still called after Video component is unmounted. I think this is due to some events that are not correctly unbound. The warning is :

warning.js:36 Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the Video component.

I'm trying to fix this in a PR.