mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### Why We calculate the “next url” depending on the router state and the previous router state so that when you navigate to a route, the proxy matches with that header and returns you the intercepted route if matching ### What - Fixes #52745 Co-authored-by: Jiachi Liu <[email protected]>
23 lines
461 B
JavaScript
23 lines
461 B
JavaScript
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}</p>
|
|
<Link href="/static-page" id="to-static-page">
|
|
To Static Page
|
|
</Link>
|
|
</>
|
|
)
|
|
}
|