Update BatchingAndTiming.md

This commit is contained in:
Tharaka Manawardhana 2018-09-01 15:05:15 +10:00 committed by GitHub
parent c1e7a60a2f
commit 04fde10bc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ This is good for all sorts of reasons:
* The new code does proper batching of renderings even when changes to atoms are done outside of event handlers (which is great for e.g core.async users). * The new code does proper batching of renderings even when changes to atoms are done outside of event handlers (which is great for e.g core.async users).
* Repaints can be synced by the browser with for example CSS transitions, since Reagent uses requestAnimationFrame to do the batching. That makes for example animations smoother. * Repaints can be synced by the browser with for example CSS transitions, since Reagent uses requestAnimationFrame to do the batching. That makes for example animations smoother.
In short, Reagent renders less often, but at the right times. For a much better description of why async rendering is good, see David Nolens [excellent explanation here.](http://swannodette.github.io/2013/12/17/the-future-of-javascript-mvcs/) In short, Reagent renders less often, but at the right times. For a much better description of why async rendering is good, see David Nolens [excellent explanation here.](http://swannodette.github.io/2013/12/17/the-future-of-javascript-mvcs)
## The bad news ## The bad news