We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6f589e commit e3cc25aCopy full SHA for e3cc25a
packages/react-router-dom/modules/NavLink.js
@@ -16,8 +16,8 @@ const NavLink = ({
16
}) => (
17
<Route
18
path={typeof to === 'object' ? to.pathname : to}
19
- children={({ history, match }) => {
20
- const isActive = !!(getIsActive ? getIsActive(match, history.location) : match)
+ children={({ location, match }) => {
+ const isActive = !!(getIsActive ? getIsActive(match, location) : match)
21
22
return (
23
<Link
0 commit comments