title: How to dispatch actions on location change with react router v4
body: <p>I am using <code>react-router-4.0.0-beta.4</code> with redux, I am trying to figure out the best way to dispatch actions on route change. I see that a few versions ago there was an API/event hook for this <a href="https://github.com/ReactTraining/react-router/blob/7f6706dab4827afc1c26a58418f8ef8c8ab40125/website/examples/Redux.js#L56" rel="noreferrer">here</a>. But I see that it is now gone. Trying to do the modern equivalent of what <code>redux-router</code> did.</p>