Skip to content

Commit

Permalink
remove occurence of deprecated url prop in readme (vercel#5786)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucleray authored and timneutkens committed Dec 1, 2018
1 parent a66e1c0 commit e43d21f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ Router.events.on('routeChangeError', (err, url) => {

<p></p>

Shallow routing allows you to change the URL without running `getInitialProps`. You'll receive the updated `pathname` and the `query` via the `url` prop of the same page that's loaded, without losing state.
Shallow routing allows you to change the URL without running `getInitialProps`. You'll receive the updated `pathname` and the `query` via the `router` prop (injected using [`withRouter`](#using-a-higher-order-component)), without losing state.

You can do this by invoking either `Router.push` or `Router.replace` with the `shallow: true` option. Here's an example:

Expand Down

0 comments on commit e43d21f

Please sign in to comment.