rsnext/examples/with-loading/pages/forever.js
Jazib Jafri 31a6410bb2
Update with-loading example to SSG (#11050)
* Update getInitialProps to getStaticProps

* Updated example

Co-authored-by: Luis Alvarez <luis@zeit.co>
2020-03-13 16:48:32 -05:00

10 lines
236 B
JavaScript

const ForeverPage = () => <p>This page was rendered for a while!</p>
export async function getServerSideProps() {
await new Promise(resolve => {
setTimeout(resolve, 3000)
})
return { props: {} }
}
export default ForeverPage