Created
October 4, 2017 13:13
-
-
Save abel-masila/eaa9ea973f0b7f514086ec8ecda320a1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import createBrowserHistory from 'history/createBrowserHistory' | |
import queryString from 'query-string'; | |
const history = createBrowserHistory(); | |
history.location.query = queryString.parse(history.location.search); | |
history.listen(() => { | |
history.location.query = queryString.parse(history.location.search); | |
}); | |
export default history; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment