by acdlite · 5y ago · 0 comments
We call non-discrete events (like mousemove) "continuous", and for those we will batch updates across multiple events.
We've been testing this at Facebook for a while and we think our model is really solid, handling all the common cases and a bunch of edge cases, too. If you try it out and find something unexpected, please let us know and we'll fix it!
Like, yes, implementing batching in React was complicated, but in exchange the developer doesn't have to think about it anymore. It just works!