Fetch data from external Api with reactjs hooks in every 10 seconds

后端 未结 0 1652
别跟我提以往
别跟我提以往 2021-01-22 17:46

I use React js hooks to fetch data from api every 10 seconds in UseEffect. The problem is that it takes 10 seconds to do the state update first. So before the setInterval functi

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