Asynch Action Redux

const handleAsync = () => {
  return function(dispatch) {
    dispatch(requestingData())

    setTimeout(function() {
      let data = {
        users: ['Jeff', 'William', 'Alice']
      }
      // Dispatch received data action here(just a placeholder for API)
      
        dispatch(receivedData(data))
    }, 2500);
  }
};
Homeless Hawk