title: Reload page after POST request success with hooks
body: <p>I want to reload page (call get request again) after POST request success with hooks. Let's say I have a post reducer</p>
  
  <pre><code>const post = {
      isLoading: false
      isSaving: false
      data: any
      error: string
  }
  </code></pre>
  
  <p>Normally when I create a class component</p>
  
  <pre><code>componentDidMount() {
      this.props.getPost()
  }
  
  componentDidUpdate(prevProps) {
   // When create new Post successfully, get post again
   if (prevProps.post.saving &amp;&amp; this.props.post.saving) {
    this.props.getPost()
   }
  } 
  </code></pre>
  
  <p>But when do the same thing with hooks, I know how to fetch the post but don't know how to reload it after creating a new one successfully</p>
  
  <pre><code>// Get post on did mount
  React.useEffect(() =&gt; getPost(), [])
  </code></pre>
  
  <p>Could you guys show me how to do that? Thank you very much</p>