mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
As noted in the comments, it's necessary to always add optional dependencies as missing dependencies even if they exist because they might be deleted and re-added. Closes #51763.
17 lines
337 B
JavaScript
17 lines
337 B
JavaScript
import { use } from 'react'
|
|
|
|
async function getData() {
|
|
await new Promise((resolve) => setTimeout(resolve, 1000))
|
|
return {
|
|
message: 'hello from slow page',
|
|
}
|
|
}
|
|
|
|
export default function SlowPage() {
|
|
const data = use(getData())
|
|
|
|
return <h1 id="slow-page-message">{data.message}</h1>
|
|
}
|
|
|
|
export const dynamic = 'force-dynamic'
|