3 ms·
Thanks. This really drives home how insane the browser architecture is. React would like to pause rendering to react to new events as they come in. However, th
by millstone 7y ago
Thanks. This really drives home how insane the browser architecture is.
React would like to pause rendering to react to new events as they come in. However, there is no way for React to be told when there is a new event, so it has to poll for it. Unfortunately there's no way to directly poll for a new event, so it has to fake an event poll via inversion of control built on top of requestAnimationFrame.
- pomber 7y agoYes, but the React team is working together with the Chrome team to improve it. There is an `isInputPending` proposal https://techcrunch.com/2019/04/22/facebook-makes-its-first-browser-api-contribution/ https://techcrunch.com/2019/04/22/facebook-makes-its-first-b...