Skip to content

Instance being reset due to rerender #1134

@insertmike

Description

@insertmike

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

  1. Go to the provided CodeSandbox link.

  2. Observe the hierarchial structure

  3. 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..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions