next.js/test/e2e/app-dir/revalidate-path-with-rewrites/app/cache-components/dynamic/page.tsx
page.tsx22 lines427 B
import { Suspense } from 'react'
import { connection } from 'next/server'
import SharedPage from '../../shared-page'

async function CachedContent() {
  'use cache: remote'
  return <SharedPage isDynamic={true} />
}

async function Content() {
  await connection()
  return <CachedContent />
}

export default function Page() {
  return (
    <Suspense fallback={<div>Loading...</div>}>
      <Content />
    </Suspense>
  )
}
Quest for Codev2.0.0
/
SIGN IN