The function inside setState((prevState) => newState) from useState hook gets called twice even setState is only called once

前端 未结 0 1655
长发绾君心
长发绾君心 2020-12-10 23:58

This is just blowing my mind. Any reasons why this happens?

I couldn\'t replicate it with a simpler code snippet, I couldn\'t share as well the real gigantic code bas

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