1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Fix typo in README (#1427)

`routing`not `routig`
This commit is contained in:
Will Djingga 2017-03-15 23:24:34 +11:00 committed by Tim Neutkens
parent fbc6c47e86
commit 13ccf78498

View file

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