title: Clear or update redirect state
body: <p>I'm currently pass data to new page by <code>Redirect</code> state from <code>'react-router-dom'</code>.
  Here is my code:</p>
  
  <pre><code>import {Redirect} from 'react-router-dom';
  ...
  render() {
      return &lt;Redirect push to={{pathname: "/account/group/" + temp, state: _data}}/&gt;;
  }
  ...
  </code></pre>
  
  <p>And load data on new page <code>/account/group</code> successfully:</p>
  
  <pre><code>...
  constructor(props) {
      super()
      this.state = {
          data: props.location.state,
      }
  }
  ... 
  </code></pre>
  
  <p>It's working fine until I try to update the state on new page and send it to the server, then reload the page, this state still take the old value from <code>props.location.state</code>, the updated value that seem lost (in fact, this due to I can not change <code>props.location.state</code> with new value).</p>
  
  <p>Could anyone can help me with this case? My opinion is change / replace the value of <code>props.location.state</code> or clear them?</p>
  
  <p>Thanks all</p>