text: import { getInitialData } from '../utils/api';
  import { receiveUsers } from '../actions/users';
  import { receivetweets } from './tweets';
  import { setAuthedUser } from './authUser';
  import { showLoading, hideLoading } from 'react-redux-loading';
  
  const AUTHED_ID = 'tylermcginnis';
  
  export function handleInitialData() {
      return ((dispatch) => {
          dispatch(showLoading());
          return getInitialData()
              .then(({users, tweets}) => {
                  dispatch(receiveUsers(users));
                  dispatch(receivetweets(tweets));
                  dispatch(setAuthedUser(AUTHED_ID));
                  dispatch(hideLoading());
              })
      });
  }