The setState
functions are batched and final state is set by combining all the states in event handler functions. I am curios that multiple setState
function calls are batched in life cycle methods or not. Similarly if the function is not an event handler, is batching happens or not.
Asked
Active
Viewed 29 times
0

Umair Farooq
- 1,763
- 13
- 16
-
Maybe ... ... ... – Jonas Wilms Dec 28 '18 at 12:52
-
https://github.com/facebook/react/issues/10231#issuecomment-316644950 does this answer your question perhaps? – Jony-Y Dec 28 '18 at 12:55
-
See also for TL;DR version, https://stackoverflow.com/a/52025835/3731501 – Estus Flask Dec 28 '18 at 13:12