Commit 7eed8380 authored by Joe Haddad's avatar Joe Haddad Committed by Luis Fernando Alvarez D

Comment out GIP in Custom <App> (#8055)

parent 5a54e871
...@@ -1421,15 +1421,20 @@ import React from 'react' ...@@ -1421,15 +1421,20 @@ import React from 'react'
import App, { Container } from 'next/app' import App, { Container } from 'next/app'
class MyApp extends App { class MyApp extends App {
static async getInitialProps({ Component, ctx }) { // Only uncomment this method if you have blocking data requirements for
let pageProps = {} // every single page in your application. This disables the ability to
// perform automatic static optimization, causing every page in your app to
if (Component.getInitialProps) { // be server-side rendered.
pageProps = await Component.getInitialProps(ctx) //
} // static async getInitialProps({ Component, ctx }) {
// let pageProps = {}
return { pageProps } //
} // if (Component.getInitialProps) {
// pageProps = await Component.getInitialProps(ctx)
// }
//
// return { pageProps }
// }
render() { render() {
const { Component, pageProps } = this.props const { Component, pageProps } = this.props
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment