Skip to content

Commit e3cc25a

Browse files
inuscripttimdorr
inuscript
authored andcommitted
fix location variable (#4403)
1 parent b6f589e commit e3cc25a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-router-dom/modules/NavLink.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const NavLink = ({
1616
}) => (
1717
<Route
1818
path={typeof to === 'object' ? to.pathname : to}
19-
children={({ history, match }) => {
20-
const isActive = !!(getIsActive ? getIsActive(match, history.location) : match)
19+
children={({ location, match }) => {
20+
const isActive = !!(getIsActive ? getIsActive(match, location) : match)
2121

2222
return (
2323
<Link

0 commit comments

Comments
 (0)