title: How to trigger a page Redirect within componentWillReceiveProps?
body: <p>My page/component outputs a form that upon submission calls my backend API. If successful, it returns an object that I add to my redux store.</p>
  
  <p>I use <code>componentWillReceiveProps</code> in order to know in my component whether or not the reducer successfully added the object to my store's property. I included Redirect from redux-router.</p>
  
  <pre><code>import { Redirect } from 'react-router-dom';
  
  componentWillReceiveProps(nextProps) {
  
      if( nextProps.user.activeSubscriptions ) {
          this.props.user.activeSubscriptions = nextProps.user.activeSubscriptions;
      }
  
      if( Object.keys(nextProps.user.properties).length != Object.keys(this.props.user.properties).length ) {
          console.log("lets redirect.."); // this works
          return (&lt;Redirect to={"/account/properties"} /&gt;); // this doesn't...
      }
  }
  </code></pre>
  
  <p>How can I trigger a redirect within that if() statement in my <code>componentWillReceiveProps</code>?</p>