Unverified Commit 8388d234 authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

Fix missing key in `LoadingBoundary` (#71222)

Just noticed this on Front but couldn't figure out how to repro.
parent 365f1d1d
...@@ -47,19 +47,20 @@ export async function createComponentStylesAndScripts({ ...@@ -47,19 +47,20 @@ export async function createComponentStylesAndScripts({
// @ts-ignore // @ts-ignore
precedence={precedence} precedence={precedence}
crossOrigin={ctx.renderOpts.crossOrigin} crossOrigin={ctx.renderOpts.crossOrigin}
key={index} key={`style-${index}`}
/> />
) )
}) })
: null : null
const scripts = jsHrefs const scripts = jsHrefs
? jsHrefs.map((href) => ( ? jsHrefs.map((href, index) => (
<script <script
src={`${ctx.assetPrefix}/_next/${encodeURIPath( src={`${ctx.assetPrefix}/_next/${encodeURIPath(
href href
)}${getAssetQueryString(ctx, true)}`} )}${getAssetQueryString(ctx, true)}`}
async={true} async={true}
key={`script-${index}`}
/> />
)) ))
: null : null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment