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:
parent
3c4e690d1f
commit
3299db9758
|
@ -1052,7 +1052,7 @@ import React from 'react'
|
||||||
import App, { Container } from 'next/app'
|
import App, { Container } from 'next/app'
|
||||||
|
|
||||||
export default class MyApp extends App {
|
export default class MyApp extends App {
|
||||||
static async getInitialProps({ Component, router, ctx }) {
|
static async getInitialProps({ Component, ctx }) {
|
||||||
let pageProps = {}
|
let pageProps = {}
|
||||||
|
|
||||||
if (Component.getInitialProps) {
|
if (Component.getInitialProps) {
|
||||||
|
|
Loading…
Reference in a new issue