I have two effects set up to instantiate some values in my stateless react component. However, I can\'t seem to access the data set by my first function in my second functio