Why is the spread operator returning an empty array from a promise in useEffect()?

前端 未结 0 1499

So I have a simple game I\'ve made which saves hiscores (using Google Firebase). I have a function (getHiscores()) that returns a promise, gets the hiscores from the database, a

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