Files
JJ KasperandGitHub e39f30e897 De-dupe inflight getStaticProps requests (#30125)
This ensures we de-dupe inflight `getStaticProps` requests the same way we do `getServerSideProps`, this also removes the `_getStaticData` and `_getServerData` methods as they were repeating the same logic so could be combined into `fetchNextData`.
2021-10-22 14:34:57 +00:00

7 lines
218 B
JavaScript

export async function getStaticProps() {
await new Promise((resolve) => setTimeout(resolve, 2000))
return { props: { message: 'hello world' } }
}
export default ({ message }) => <p id="content">slow {message}</p>