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({
// @ts-ignore
precedence={precedence}
crossOrigin={ctx.renderOpts.crossOrigin}
key={index}
key={`style-${index}`}
/>
)
})
: null
const scripts = jsHrefs
? jsHrefs.map((href) => (
? jsHrefs.map((href, index) => (
<script
src={`${ctx.assetPrefix}/_next/${encodeURIPath(
href
)}${getAssetQueryString(ctx, true)}`}
async={true}
key={`script-${index}`}
/>
))
: 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