Skip to content

Commit 41ae1b7

Browse files
committed
Refer to correct location for query params
I was trying to understand how to access query params. After some trial and error, I realized that they were located in `this.props.location.query`. The Upgrade Guide incorrectly placed them at `this.props.query`, so I'm updating it to refer to the correct location. Fixes #1915
1 parent 58bb0ce commit 41ae1b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UPGRADE_GUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ and where you get it now if you're a route component (`this.props`)
258258
| `getPath()` | `location.pathname+location.query` |
259259
| `getPathname()` | `location.pathname` |
260260
| `getParams()` | `params` |
261-
| `getQuery()` | `query` |
261+
| `getQuery()` | `location.query` |
262262
| `getRoutes()` | `routes` |
263263
| `isActive(to, params, query)` | `history.isActive(pathname, query, onlyActiveOnIndex)` |
264264

0 commit comments

Comments
 (0)