From e43d21fdf078f4c8f35f8026fa0874da0c697e9b Mon Sep 17 00:00:00 2001 From: Luc Date: Sun, 2 Dec 2018 04:11:06 +0800 Subject: [PATCH] remove occurence of deprecated `url` prop in readme (#5786) --- packages/next/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/README.md b/packages/next/README.md index 549f0b04..dc8bff32 100644 --- a/packages/next/README.md +++ b/packages/next/README.md @@ -624,7 +624,7 @@ Router.events.on('routeChangeError', (err, url) => {

-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: