News for hackers. Stuff that matters.
Re:Scheduling in React by philipp-spiess on Thursday March 07, 2019 @04:19PM (#19332577)
It feels a bit faster, yes. The reason is that the input value is updated earlier.

The problem is, that the UI is still unresponsive when the timeouts fire which you feel if you type fast or look at the animation/fps meter.

Instead of a setTimeout, you could also debounce the two expensive updates (as I've noted in the post). This would at least make sure that they are batched so if you type fast you only need to re-render the list once.

There are no comments on this comment yet.