next.js/test/e2e/legacy-link-behavior/app/layout.tsx
layout.tsx25 lines435 B
import { connection } from 'next/server'
import { ReactNode, Suspense } from 'react'

export default async function Root({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <html>
      <body>
        <Suspense>
          <Connection>{children}</Connection>
        </Suspense>
      </body>
    </html>
  )
}

async function Connection({ children }: { children: ReactNode }) {
  await connection()

  return children
}
Quest for Codev2.0.0
/
SIGN IN