plyr-react
plyr-react copied to clipboard
Instance being reset due to rerender
Describe the bug When attempting to retrieve state information from the Plyr instance, such as real-time data of playing state, it appears to be reset due to rerender.
To Reproduce
-
Go to the provided CodeSandbox link.
-
Observe the hierarchial structure
-
Try running the player and observe what happens to its state
Expected behavior The Plyr instance should retain its state information even during rerender, allowing users to access and utilize real-time data of the playing state without it being reset.
Additional context Open to workarounds, someone must have hit this already..
Any solution to this issue?