Skip to content

Commit 23d1c96

Browse files
committed
remove frag
1 parent 48bff8b commit 23d1c96

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

packages/next/src/server/app-render/app-render.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import type { DeepReadonly } from '../../shared/lib/deep-readonly'
2727
import type { BaseNextRequest, BaseNextResponse } from '../base-http'
2828
import type { IncomingHttpHeaders } from 'http'
2929

30-
import React, { Fragment, type ErrorInfo, type JSX } from 'react'
30+
import React, { type ErrorInfo, type JSX } from 'react'
3131

3232
import RenderResult, {
3333
type AppPageRenderResultMetadata,
@@ -3935,13 +3935,9 @@ const getGlobalErrorStyles = async (
39353935
const SegmentViewNode = ctx.componentMod.SegmentViewNode
39363936
const globalErrorModulePath = globalErrorModule?.[1] || 'global-error.js'
39373937
globalErrorStyles = (
3938-
<Fragment key="global-error-styles">
3938+
<SegmentViewNode type="global-error" pagePath={globalErrorModulePath}>
39393939
{globalErrorStyles}
3940-
<SegmentViewNode
3941-
type="global-error"
3942-
pagePath={globalErrorModulePath}
3943-
/>
3944-
</Fragment>
3940+
</SegmentViewNode>
39453941
)
39463942
}
39473943
}

0 commit comments

Comments
 (0)