A javascript watcher that works just right
Ivan Orlov
333

It’s not a very good idea to make it asynchronous by default. Check out MobX for a synchronous observer pattern. With MobX it is trivial to batch any synchronous change reaction to requestanimationFrame or to process.nextTick. Having callbacks synchronous make debugging so much easier, because the code which triggers the change is in the callstack.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.