react-vimeo
react-vimeo copied to clipboard
Problems with onEnd, onPause, etc in strict mode
When I use any "on" event is not working the event, when I use the onEnd event, when the video finished no event is fire, same with other events such as pause. Everything else works fine, but those events are not working.
same issue. Any updates?
Ye, same issue here. If you found a workaround, please drop it here.
EDIT:
After some research found this:
https://github.com/cookpete/react-player/issues/1453#issuecomment-1126687518
Removing React.StrictMode solved the issue for me
After some research found this: https://github.com/cookpete/react-player/issues/1453#issuecomment-1126687518 Removing React.StrictMode solved the issue for me
🤯
i am not sure when i can have a deeper look at this. The fact that StrictMode changes the behaviour suggests that it's to do with React double-mounting in development mode? it would be important to be compatible with this.
Any updates?