title: Dispatch action on the createAsyncThunk?
body: <p>I hava a thunk action was created by <code>createAsyncThunk</code>. I want to dispatch an action before call api to update state.</p>
  <p>I don't want use action <code>getProducts.pending</code> because I want dispatch <code>actionLoading()</code> for other  thunk actions.</p>
  <p>How I can i do it? Thanks!</p>
  <pre><code>export const getProducts = createAsyncThunk(&quot;getProducts&quot;, async () =&gt; {
  
    // I want dispatch action actionCallAPIPending like that
    // dispatch(actionLoading());
    const response = await axios.get(&quot;api&quot;);
    return response;
  });
  </code></pre>