-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react warning: Each child in an array or iterator should have a unique "key" prop. #276
Comments
A solution I found was to define the url object above in this way...
the lifecycle of my application renders video before the file_url is defined perhaps a change that filters out invalid source definitions or or maybe uses an alternative key when src is undefined? this.renderSource return _react2['default'].createElement('source', { key: src, src: src, type: type }); |
If url={file_url ? [{ src: file_url, type: mime_type }] : null} but you're right, the |
I'm seeing a react warning using the latest react-player sources
react-player: 0.25.3
react: 16.1.0
the stack trace shows this as the only non-react source file associated with the message
and opening that shows this...
the ReactPlayer is included in this way
The text was updated successfully, but these errors were encountered: