useEffect is returning undefined even though “then” is returning a value response

前端 未结 0 1132
耶瑟儿~
耶瑟儿~ 2020-12-11 06:31

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         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题