title: Triggering action on route change with react-router
body: <p>I'm creating a small application with react, redux and react-router.</p>
  
  <p>I have a list of items wrapped in <code>&lt;Link /&gt;</code>, and when I click one of them, I want the item to be set as the <code>currentItem</code> in the state before triggering the link action. There's an action to do that - <code>selectItem(item)</code> - but I don't know how to trigger it.</p>
  
  <p>Should I trigger it on <code>componentWillUnmount</code>? In that case - how do I figure out what item was clicked? Should I create an <code>&lt;Link onClick={}/&gt;</code> handler that dispatches the action?</p>
  
  <p>The item page will then check whether or not the currentItem is set, and potentially fetch it from the back end if not.</p>