mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
parent
fbc6c47e86
commit
13ccf78498
|
@ -409,7 +409,7 @@ Router.onAppUpdated = (nextUrl) => {
|
|||
</ul>
|
||||
</details></p>
|
||||
|
||||
Shallow routig 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 `url` prop of the same page that's loaded, without losing state.
|
||||
|
||||
You can do this by invoking the eith `Router.push` or `Router.replace` with `shallow: true` option. Here's an example:
|
||||
|
||||
|
|
Loading…
Reference in a new issue