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 d6ac814 commit 4a826faCopy full SHA for 4a826fa
packages/react-router-redux/modules/selectors.js
@@ -6,7 +6,7 @@ export const createMatchSelector = (path) => {
6
let lastPathname = null
7
let lastMatch = null
8
return (state) => {
9
- const { pathname } = getLocation(state)
+ const { pathname } = getLocation(state) || {}
10
if (pathname === lastPathname) {
11
return lastMatch
12
}
0 commit comments