title: How to get Redux states in React-Router routerWillLeave()?
body: <p>I'm trying to get Redux state <code>this.props</code> from within routerWillLeave(). I'm using a decorated component to add the Lifecycle. <code>this</code> is referencing the wrong thing so <code>this.props</code> is undefined. I'm using react-router 1.0.0 rc4</p>
  
  <pre><code>@reactMixin.decorate(Lifecycle)
  class AccountEditPage extends Component {
  
  ...
  
    routerWillLeave(nextLocation) {
  
      console.log(nextLocation);
      console.log(this.props);        
  
      const pattern = /accounts\/\d\/edit/i;
  
      if(!nextLocation.pathname.match(pattern)){
       return 'Your work is not saved! Are you sure you want to leave?';
     }
  }
  </code></pre>