Skip to content

Commit c28f467

Browse files
timReynoldstimneutkens
authored andcommitted
Remove with-styled-components Auto Prerendering warning (vercel#7871)
1 parent 8c5209e commit c28f467

File tree

1 file changed

+0
-10
lines changed
  • examples/with-styled-components/pages

1 file changed

+0
-10
lines changed

examples/with-styled-components/pages/_app.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,6 @@ const theme = {
99
}
1010

1111
export default class MyApp extends App {
12-
static async getInitialProps ({ Component, ctx }) {
13-
let pageProps = {}
14-
15-
if (Component.getInitialProps) {
16-
pageProps = await Component.getInitialProps(ctx)
17-
}
18-
19-
return { pageProps }
20-
}
21-
2212
render () {
2313
const { Component, pageProps } = this.props
2414
return (

0 commit comments

Comments
 (0)