I can\'t seem to figure out why useEffect is doing this... Wait() is a sleep async function, getData() is an Axios request.
return wait().then(getData