File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/next/src/server/app-render Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -522,11 +522,11 @@ async function getRSCPayload(
522
522
typeof varyHeader === 'string' && varyHeader . includes ( NEXT_URL )
523
523
524
524
const initialHead = (
525
- < >
525
+ < React . Fragment key = "initial-head" >
526
526
< NonIndex ctx = { ctx } />
527
527
{ /* Adding requestId as react key to make metadata remount for each render */ }
528
528
< MetadataTree key = { ctx . requestId } />
529
- </ >
529
+ </ React . Fragment >
530
530
)
531
531
532
532
return {
Original file line number Diff line number Diff line change @@ -618,7 +618,7 @@ async function createComponentTreeInternal({
618
618
return [
619
619
actualSegment ,
620
620
parallelRouteCacheNodeSeedData ,
621
- < >
621
+ < React . Fragment key = "segment-wrapper" >
622
622
{ segmentElement }
623
623
{ /* This null is currently critical. The wrapped Component can render null and if there was not fragment
624
624
surrounding it this would look like a pending tree data state on the client which will cause an error
@@ -629,7 +629,7 @@ async function createComponentTreeInternal({
629
629
null it will look like `null` (the array is elided) and this is what confuses the client router.
630
630
TODO-APP update router to use a Symbol for partial tree detection */ }
631
631
{ null }
632
- </ > ,
632
+ </ React . Fragment > ,
633
633
loadingData ,
634
634
]
635
635
}
You can’t perform that action at this time.
0 commit comments