1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Remove router property from _app docs

It’s an inconsistent result, users should use ctx instead. At a later time we’ll normalize the properties passed into _app.js its getInitialprops to be consistent with pages.
This commit is contained in:
Tim Neutkens 2019-01-11 12:03:45 +01:00
parent 3c4e690d1f
commit 3299db9758

View file

@ -1052,7 +1052,7 @@ import React from 'react'
import App, { Container } from 'next/app'
export default class MyApp extends App {
static async getInitialProps({ Component, router, ctx }) {
static async getInitialProps({ Component, ctx }) {
let pageProps = {}
if (Component.getInitialProps) {