Found this https://groups.google.com/forum/#!topic/reactjs/LkTihnf6Ey8

"React, by default, only batches it's own events because we need an
efficient way of knowing the boundaries of an event loop. You can see this
by trigger an update through a click handler:

http://jsfiddle.net/25Adh/5/
<http://www.google.com/url?q=http%3A%2F%2Fjsfiddle.net%2F25Adh%2F5%2F&sa=D&sntz=1&usg=AFQjCNGxtUrY4lpgv37ExnDwBxU80h8bvg>
"

That's why calling forceUpdate from requestAnimationFrame is not a problem?


On Sat, Jul 12, 2014 at 2:35 PM, Alexander Semenov <[email protected]>
wrote:

> Hi, David.
>
> May I ask you - in Om you queue rendering in requestAnimationFrame by
> passing a function which calls forceUpdate on the affected components. But
> as I understand forceUpdate does not guarantee to execute immediately and
> is also queued. So, the rendering should be out of sync with
> requestAnimationFrame.
>
> Am I misunderstanding something? Can you help to get this, please?
>
> Regards,
> Alex.
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "ClojureScript" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/clojurescript/4wFYpXRGbqw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to