I'm trying to use react-router 2.0 with redux-simple-router but I can't get it to work with query parsing. This is what I got from the docs:
const appHistory = useRouterHistory({
parseQueryString: parse,
stringifyQueryString: stringify
})
However if I pass the history to redux-simple-router like this ...
syncReduxAndRouter(appHistory, store, (state) => state.router)
... I get history.listen is not a function
. Using browserHistory from react-router directly seems to be working fine with redux-simple-router. Why is listen() missing from the history and how do I work around this?
npm install redux-simple-router@next
and history 2.0 if you are using custom history. I neededbasename
option and got it to work by installing both of these. – Imeldaimelida