3 ms·
To clarify, I am not talking about the React 18 feature. I have this problem in React 17. On Pagedown key, I throttle the setState calls because calling it too
by flowerlad 5y ago
To clarify, I am not talking about the React 18 feature. I have this problem in React 17. On Pagedown key, I throttle the setState calls because calling it too fast causes React to batch the updates. I'll try to make an standalone repro and open an issue in the React repo.
- danabramov 5y agoAutomatic batching is new in 18 so I suspect something else is up. A repro case would be highly appreciated! Thanks.