Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Support audio/video properly with <React.StrictMode> #79

@chetbox

Description

@chetbox

Video/audio is not playing in dev mode is because in <React.StrictMode> all useEffects are run twice so we end up with two CogsConnections. The first is shut down appropriately but the VideoPlayer and AudioPlayer that have been created by <CogsConnnectionProvider> in the meantime are using the first connection so they never get any events.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions