Unverified Commit 6ba2078b authored by Gerald Monaco's avatar Gerald Monaco Committed by GitHub

Remove obsolete prerender indicator code (#30004)

`isPrerendered` was used for the prerender indicator, which was removed in #18629
parent cf5eeded
...@@ -1187,13 +1187,6 @@ export default class Router implements BaseRouter { ...@@ -1187,13 +1187,6 @@ export default class Router implements BaseRouter {
Router.events.emit('beforeHistoryChange', as, routeProps) Router.events.emit('beforeHistoryChange', as, routeProps)
this.changeState(method, url, as, options) this.changeState(method, url, as, options)
if (process.env.NODE_ENV !== 'production') {
const appComp: any = this.components['/_app'].Component
;(window as any).next.isPrerendered =
appComp.getInitialProps === appComp.origGetInitialProps &&
!(routeInfo.Component as any).getInitialProps
}
if ( if (
(options as any)._h && (options as any)._h &&
pathname === '/_error' && pathname === '/_error' &&
......
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