Skip to content

Unique key for HslVideo #1989

@adrian-at-stink

Description

@adrian-at-stink

I'm adding multiple video players to a page

I get the following error:

Check the render method of `HlsVideo`. See https://react.dev/link/warning-keys for more information.
Each child in a list should have a unique "key" prop.

I've tried adding a key to the ReactPlayer component

<ReactPlayer
      ...
      key={id}
/>

but that doesn't resolve the error as React seems to want it on the hsl-video web component?

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