mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This expands test suite for deferred entries experimental handling and fixes missing handling for metadata routes and route handlers when building the non-deferred entries.
20 lines
377 B
TypeScript
20 lines
377 B
TypeScript
import { connection } from 'next/server'
|
|
import { Suspense } from 'react'
|
|
|
|
async function DynamicCurrentTime() {
|
|
await connection()
|
|
|
|
return <p id="current-time">{Date.now()}</p>
|
|
}
|
|
|
|
export default function CurrentTimePage() {
|
|
return (
|
|
<div>
|
|
<h1>Current Time</h1>
|
|
<Suspense fallback={null}>
|
|
<DynamicCurrentTime />
|
|
</Suspense>
|
|
</div>
|
|
)
|
|
}
|