title: Does nothing get called after dispatch in redux?
body: <p>I am trying to map over an array and call dispatch every time. it's working in the code but failing in unit tests. see below</p>
  
  <pre><code>const errorArray = [this contains 2 objects]
  
  errorArray.map(err =&gt; dispatch(myFunc(MY_VAR, err.msg)))
  </code></pre>
  
  <p>when I then assert <code>expect(myFunc).toHaveBeenCalledTimes(2)</code> it fails because it says it was only called once</p>
  
  <p>so then I changed my code to be</p>
  
  <pre><code>console.log('hi')
  dispatch(myFunc(MY_VAR, 'randomstring'))
  </code></pre>
  
  <p>// this printed out 'hi'</p>
  
  <p>I then swapped it round to be</p>
  
  <pre><code>dispatch(myFunc(MY_VAR, 'randomstring'))
  console.log('hi')
  </code></pre>
  
  <p>and hi was NOT logged. does this mean that once dispatch has happened, nothing else gets called after? this would also explain the first part when I'm asserting for 2 dispatches. but it's only doing the first one. what am i doing wrong? I just want to map over my errors array and dispatch for every one inside there</p>