Skip to content

Commit

Permalink
fixup! Fix missing keys in Fragments in arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Aug 7, 2024
1 parent 62dd367 commit ed796d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next/src/server/app-render/app-render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -581,14 +581,14 @@ async function getErrorRSCPayload(
})

const initialHead = (
<>
<React.Fragment key={flightDataPathHeadKey}>
<NonIndex ctx={ctx} />
{/* Adding requestId as react key to make metadata remount for each render */}
<MetadataTree key={requestId} />
{process.env.NODE_ENV === 'development' && (
<meta name="next-error" content="not-found" />
)}
</>
</React.Fragment>
)

const initialTree = createFlightRouterStateFromLoaderTree(
Expand Down

0 comments on commit ed796d0

Please sign in to comment.