title: await a redux dispatch
body: <p>Hello I would like to dispatch a login request. In this dispatch, I store the status of the loginattempt in the store as 'loginStatus'. After the dispatch I want to read the loginstatus and dispatch another action based off this value but the loginstatus is not updated by the time I try to access it. I added async await tags but the issue persists. Any way I can wait for a dispatch to complete before running the next lines of code? My current code is bellow</p>
  <p>Thanks</p>
  <pre><code>handleSubmit = async () =&gt; {
      if( this.isValidForm() ) {
        const details = {
          &quot;username&quot;: this.state.username,
          &quot;password&quot;: this.state.password
        }
        await this.props.dispatch( login(details) )
        // setTimeout(console.log( this.props.loginStatus ), 4000)
        console.log(this.props.loginStatus)
        if( this.props.loginStatus !== SUCCESS ) this.props.dispatch( showAlert({ type: &quot;error&quot;, message: &quot;test&quot;}))
      }
  }
  </code></pre>