fix mistake in docs (#4013)

This commit is contained in:
Jeffrey Young 2018-03-14 23:00:29 -06:00 committed by Arunoda Susiripala
parent b1d8b839dd
commit f0308687c1

View file

@ -562,7 +562,7 @@ componentWillReceiveProps(nextProps) {
>
> Shallow routing works **only** for same page URL changes. For an example, let's assume we have another page called `about`, and you run this:
> ```js
> Router.push('/about?counter=10', '/about?counter=10', { shallow: true })
> Router.push('/?counter=10', '/about?counter=10', { shallow: true })
> ```
> Since that's a new page, it'll unload the current page, load the new one and call `getInitialProps` even though we asked to do shallow routing.