react hooks - update state from prevState not working - is useEffect an option here?

后端 未结 0 1579
-上瘾入骨i
-上瘾入骨i 2021-01-13 07:43

When my component first mounts, inside of useEffect() I call getPins(). That function gets some pin objects from a database. The problem is I then need to keep track of how

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