title: React Router Route Params in Redux
body: <p>Using redux and react router, I would like to access a route parameter on a component other than the one specified by the route.  </p>
  
  <p>I've got react-router, redux, and react-router-redux set up as follows and I would like to access the reportId parameter from my redux store.  </p>
  
  <pre><code>const history = syncHistoryWithStore(browserHistory, store);
  
  const store = createStore(reducers);
  
  const routes = (
      &lt;Router history={history}&gt;
          &lt;Route path="/" component={MainLayout} &gt;
              &lt;IndexRoute component={Home} /&gt;
              &lt;Route path="reports"&gt;
                  &lt;Route path=":reportId" component={ReportViewerContainer}  /&gt;
              &lt;/Route&gt;
          &lt;/Route&gt;
      &lt;/Router&gt;
  );
  
  ReactDOM.render(
      &lt;Provider store={store}&gt;{router}&lt;/Provider&gt;,
      document.getElementById('root')
  );
  </code></pre>
  
  <p>I've tried hooking up react-redux-router to store the route state, but I've found that there is nothing useful stored inside of redux besides the full path to the active route.  This has left me with the options of either parsing out the reportId from the path in redux, or creating my own custom action in redux and updating it with the componentWillReceiveProps lifecycle method inside of my ReportViewerContainer component.  There must be a better way?</p>