react-fractals icon indicating copy to clipboard operation
react-fractals copied to clipboard

Throttle update to only occur one at a time

Open jesstelford opened this issue 8 years ago • 0 comments

By using the callback to setState, updates are only run one at a time once the previous update has completely finished (ie; fully flushed to the DOM, which can take longer than it takes for the next mousemove event to fire).

Contrary to popular belief, setState is not necessarily synchronous.

jesstelford avatar Dec 30 '16 10:12 jesstelford