Redux Thunk Callback after dispatching an action?
<p>So in my React component, I have this:</p>

<pre><code>this.props.updateAlertCallback('error', ERROR_MESSAGE)
</code></pre>

<p>My <code>updateAlertCallback</code> action is:</p>

<pre><code>export const updateAlert = (alert, message) =&gt; {
  return {
    type: 'UPDATE_ALERT',
    alert,
    message
  }
}

export const updateAlertCallback = (alert, message) =&gt; {
  return dispatch =&gt; {
    return dispatch(updateAlert(alert, message)).then(() =&gt; {
      console.log('Done!');
    });
  }
}
</code></pre>

<p>I'm getting the following error: <strong>Uncaught TypeError: dispatch(...).then is not a function</strong></p>

<p>What's the proper way to log something after <code>updateAlert</code> is done running?</p>