Files
Shu DingandGitHub 869aeb40ce Fix HMR for missing dependencies in next-app-loader (#51778)
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.
2023-06-25 19:26:09 +00:00

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'