Skip to content

Commit

Permalink
Update shallow routing caveat (#35052)
Browse files Browse the repository at this point in the history
Minor change to improve caveat clarity of doing shallow routing

## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`


Co-authored-by: Lee Robinson <9113740+leerob@users.noreply.github.com>
  • Loading branch information
lfades and leerob committed Mar 7, 2022
1 parent c130fd6 commit 4c6c490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/routing/shallow-routing.md
Expand Up @@ -54,7 +54,7 @@ componentDidUpdate(prevProps) {

## Caveats

Shallow routing **only** works for same page URL changes. For example, let's assume we have another page called `pages/about.js`, and you run this:
Shallow routing **only** works for URL changes in the current page. For example, let's assume we have another page called `pages/about.js`, and you run this:

```jsx
router.push('/?counter=10', '/about?counter=10', { shallow: true })
Expand Down

0 comments on commit 4c6c490

Please sign in to comment.