reactjs/react-router-redux

basename not working on react-router-redux 5.0.0-alpha.9

hlzhang opened this issue · 1 comments

My dependencies:
"history": "^4.7.2",
"react-router": "4.2.0",
"react-router-dom": "^4.2.2",
"react-router-redux": "5.0.0-alpha.9",
......

index.js

import {createBrowserHistory} from 'history';
import {ROUTER_BASENAME} from 'constants';
const browserHistory = createBrowserHistory({basename: ROUTER_BASENAME});

const routeMiddleware = routerMiddleware(browserHistory);
const middleware = composeEnhancers(applyMiddleware(routeMiddleware, sagaMiddleware));
const store = createStore(rootReducer, DEFAULT_STATE, middleware);

ReactDOM.render(
<Provider store={store}>
    <App history={browserHistory}/>
  </Provider>,
  document.getElementById('root')
)

App.js

import {Route, Switch} from 'react-router-dom';
import {ConnectedRouter} from 'react-router-redux'
......
render() {
    return (
      <ConnectedRouter history={this.props.history}>
......

I did not see basename on address bar.
Is there something wrong?

This is possibly an issue with the history library, but is ultimately a usage question. For those, please use Stack Overflow or Reactiflux. Thanks!