I\'m using useEffect to get values from two functions inside it and I can get only the values from one function why?
useEffect