next.js/test/e2e/app-dir/fallback-shells/app/with-cached-io/last-modified.jsx
last-modified.jsx19 lines388 B
import { getSentinelValue } from './sentinel'

export async function LastModified({ params }) {
  const { slug } = await params

  return (
    <p id="last-modified">
      Page /{slug} last modified: {new Date().toISOString()} (
      {getSentinelValue()})
    </p>
  )
}

export async function CachedLastModified({ params }) {
  'use cache'

  return <LastModified params={params} />
}
Quest for Codev2.0.0
/
SIGN IN