rsnext/packages
Rodrigo df67fa10f0
fix(youtube-embed): each child in a list should have a unique "key" prop (#57579)
Hi,

I added a key in the map iteration of scripts in Youtube Embed. I use the index as a key but maybe there are a better solution about this like script.url + index 🤔 

There isn't open related issues with this PR as this moment.

```js
      {scripts?.map((script, index) => (
        <Script
          key={index}
          src={script.url}
          strategy={scriptStrategy[script.strategy] as ScriptProps['strategy']}
          stylesheets={stylesheets}
        />
      ))}
```
2023-10-31 12:16:57 +00:00
..
create-next-app v14.0.2-canary.1 2023-10-31 09:34:35 +00:00
eslint-config-next v14.0.2-canary.1 2023-10-31 09:34:35 +00:00
eslint-plugin-next v14.0.2-canary.1 2023-10-31 09:34:35 +00:00
font v14.0.2-canary.1 2023-10-31 09:34:35 +00:00
next v14.0.2-canary.1 2023-10-31 09:34:35 +00:00
next-bundle-analyzer v14.0.2-canary.1 2023-10-31 09:34:35 +00:00
next-codemod v14.0.2-canary.1 2023-10-31 09:34:35 +00:00
next-env v14.0.2-canary.1 2023-10-31 09:34:35 +00:00
next-mdx v14.0.2-canary.1 2023-10-31 09:34:35 +00:00
next-plugin-storybook v14.0.2-canary.1 2023-10-31 09:34:35 +00:00
next-polyfill-module v14.0.2-canary.1 2023-10-31 09:34:35 +00:00
next-polyfill-nomodule v14.0.2-canary.1 2023-10-31 09:34:35 +00:00
next-swc v14.0.2-canary.1 2023-10-31 09:34:35 +00:00
react-dev-overlay v14.0.2-canary.1 2023-10-31 09:34:35 +00:00
react-refresh-utils v14.0.2-canary.1 2023-10-31 09:34:35 +00:00
third-parties fix(youtube-embed): each child in a list should have a unique "key" prop (#57579) 2023-10-31 12:16:57 +00:00