Repository metrics
- Stars
- (386 stars)
- PR merge metrics
- (PR metrics pending)
Description
Hi,
I'm using your youtube-player with react and I pleased of how it work but I have a problem when I want to destroy and recreate a player.
If you don't know how react work there is the event componentDidMount and componentWillUnmount that are called when the component is created and destroyed.
At componentWillUnmount I create the player and bind one event. When componentWillUnmount is launch (changing page for example) I unbind the player event. But when I create again the player (componentWillUnmount ) I got this error :
Event handlers cannot be overwritten
Is there something else I should do when I when to delete the player ?