Files
Jan PotomsGitHubJJ Kasperkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
9300151118 Allow pages to be async modules to enable top-level-await (#17590)
Co-authored-by: JJ Kasper <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-10-14 11:55:42 +02:00

6 lines
167 B
React

const appValue = await Promise.resolve('hello')
export default function MyApp({ Component, pageProps }) {
return <Component {...pageProps} appValue={appValue} />
}