Wrap `isShownKey` values in a function that replaces spaces with underscores. When parsing the hash on route change, replace the spaces in the values with underscores again.
This commit is contained in:
Owen Conti
2017-09-13 17:20:37 -06:00
parent 7cd42992f2
commit 430e2a970f
3 changed files with 7 additions and 4 deletions

View File

@@ -650,3 +650,5 @@ export const shallowEqualKeys = (a,b, keys) => {
return eq(a[key], b[key])
})
}
export const replaceSpacesWithUnderscores = (str) => str.replace(/\s/, "_")