From 4c6c4904d731cdcaef0731aa7c7585119b4653e8 Mon Sep 17 00:00:00 2001 From: Luis Alvarez D Date: Mon, 7 Mar 2022 18:29:07 -0500 Subject: [PATCH] Update shallow routing caveat (#35052) 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> --- docs/routing/shallow-routing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/routing/shallow-routing.md b/docs/routing/shallow-routing.md index d1703af6b6e1..534804bb8369 100644 --- a/docs/routing/shallow-routing.md +++ b/docs/routing/shallow-routing.md @@ -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 })