Skip to content

Commit

Permalink
Apply changes from vercel#35545
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Mar 23, 2022
1 parent 6ae58d1 commit 3a861b5
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions packages/next/server/root-render.tsx
Expand Up @@ -25,8 +25,6 @@ export type RenderOptsPartial = {
err?: Error | null
dev?: boolean
serverComponentManifest?: any
renderServerComponentData?: boolean
serverComponentProps?: any
supportsDynamicHTML?: boolean
runtime?: 'nodejs' | 'edge'
serverComponents?: boolean
Expand Down Expand Up @@ -142,7 +140,6 @@ export async function renderToHTML(
const {
buildManifest,
serverComponentManifest,
serverComponentProps,
supportsDynamicHTML,
runtime,
ComponentMod,
Expand Down Expand Up @@ -185,11 +182,11 @@ export async function renderToHTML(
}
)

let { renderServerComponentData } = renderOpts
if (query.__flight__) {
renderServerComponentData = true
delete query.__flight__
}
let renderServerComponentData = query.__flight__ !== undefined

// const serverComponentProps = query.__props__
// ? JSON.parse(query.__props__ as string)
// : undefined

const jsxStyleRegistry = createStyleRegistry()

Expand Down

0 comments on commit 3a861b5

Please sign in to comment.