DEV Community

Discussion on: The most elegant debounce code you'll ever write featuring XState

Collapse
 
josemunoz profile image
José Muñoz

You should checkout Dan Abramov's Time-slicing talk from a few years ago, he does a great demo about synv vs debounced vs concurrent.

youtube.com/watch?v=nLF0n9SACd4

Collapse
 
codingdive profile image
Mikey Stengel

I watched it and enjoyed it a lot. This post is about XState not concurrent react though. Same debounce logic can be done in XState with vanilla JS.