Detect if state updates are batched in React Hooks?

后端 未结 0 1266
轻奢々
轻奢々 2020-12-19 20:16

As explained in this question, React batches state update calls within React event handlers.

React currently will batch state updates if they\'re trigger

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