mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What Isolate parallel-routes related test cases for streaming metadata into a standalone test suite. Prepared to add more parallel route test cases into it.
21 lines
454 B
TypeScript
21 lines
454 B
TypeScript
import Link from 'next/link'
|
|
import { connection } from 'next/server'
|
|
|
|
export default function Page() {
|
|
return (
|
|
<div>
|
|
<p>no bar</p>
|
|
<Link href="/parallel-routes">Back to /parallel-routes</Link>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export async function generateMetadata() {
|
|
await connection()
|
|
await new Promise((resolve) => setTimeout(resolve, 1000))
|
|
return {
|
|
title: `Dynamic api ${Math.random()}`,
|
|
description: 'no-bar description',
|
|
}
|
|
}
|