next.js/test/e2e/app-dir/app-prefetch/app/dashboard/page.js
page.js23 lines491 B
import Link from 'next/link'

export const revalidate = 0

async function getData() {
  await new Promise((resolve) => setTimeout(resolve, 3000))
  return {
    message: 'Welcome to the dashboard',
  }
}
export default async function DashboardPage(props) {
  const { message } = await getData()

  return (
    <>
      <p id="dashboard-page">{message} [dashboard-prefetch-sentinel]</p>
      <Link href="/static-page" id="to-static-page">
        To Static Page
      </Link>
    </>
  )
}
Quest for Codev2.0.0
/
SIGN IN