React router 4 history.listen never fires
Switched to router v4 and history v4.5.1 and now history listener not working import createBrowserHistory from 'history/createBrowserHistory' const history = createBrowserHistory() history.listen((location, action) => { console.log(action, location.pathname, location.state) // <=== Never happens }) render( <Provider store={store}> <Router history={history}> ... </Router> </Provider>, document.getElementById('root') ) Any ideas why it is being ignored? Since you are using BrowserRouter(with import alias Router as mentioned in comments of the question), it doesn't care the history prop you pass