Commit e43d21fd authored by Luc's avatar Luc Committed by Tim Neutkens

remove occurence of deprecated `url` prop in readme (#5786)

parent a66e1c0d
......@@ -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:
......
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