title: Array empty even after a loop
body: <p>I'm trying to fill an array with some registers from a database. However, even after retrieving said registers and place them into the array, after the loop the array stays empty</p>
  
  <pre><code>const userParties = [];
  
  userFollowing.forEach(element =&gt; {
    // Here's when I gather the information that I need
    dispatchGetUserEvents(element.user, response =&gt; {
      userParties.push(response);
      console.log(userParties); // Here the array is full of elements, like it's supposed to be
    });
  });
  
  console.log(userParties); // However, here 'userParties' return '[]'
  this.setState({ followUsersEvents: userParties });
  this.setState({ userImage: userImg });
  </code></pre>
  
  <p>I tried to update the state array on the loop, but I had no luck there either.
  'userParties' is not a state array btw.</p>