Skip to content

Commit

Permalink
fix: add key to chunks script elements (#631)
Browse files Browse the repository at this point in the history
fix #628
  • Loading branch information
kuoruan committed Sep 17, 2020
1 parent 94e0c42 commit 25b532e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/server/src/ChunkExtractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,15 @@ class ChunkExtractor {
return [
<script
id={id}
key={id}
dangerouslySetInnerHTML={{
__html: this.getRequiredChunksScriptContent(),
}}
{...props}
/>,
<script
id={`${id}_ext`}
key={`${id}_ext`}
dangerouslySetInnerHTML={{
__html: this.getRequiredChunksNamesScriptContent(),
}}
Expand Down

0 comments on commit 25b532e

Please sign in to comment.