next.js/test/e2e/app-dir/cache-components/app/cases/static-rsc-dynamic-client/page.tsx
page.tsx21 lines480 B
import { Suspense } from 'react'

import { getSentinelValue } from '../../getSentinelValue'

import { Time } from './client'

export default function Page() {
  return (
    <>
      <p>
        This page is static in RSC but dynamic in the client. It should serve a
        static fallback that updates in the browser.
      </p>
      <Suspense fallback={<span>Loading...</span>}>
        <Time />
      </Suspense>
      <div id="page">{getSentinelValue()}</div>
    </>
  )
}
Quest for Codev2.0.0
/
SIGN IN