Yes this isn't going to work. Om renders on requestAnimationFrame - this
means in your example there is a race condition between refresh and
changing the root component. This race condition is easily avoided by
making the current route a part of the application state.

David


On Sun, Mar 16, 2014 at 4:48 PM, Scott Nelson <[email protected]> wrote:

> Here's a simple demonstration:
> https://gist.github.com/scttnlsn/edcd40d617976880c7ba
>
> Keep clicking the button and you should notice that at some point the
> counter will increment, the route handler is called but the new view is not
> rendered.
>
> --
> 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.
>

-- 
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