I can answer some of these:

On Fri, Jul 25, 2014 at 2:42 PM, <[email protected]> wrote:

>
> * how do I handle recalculations periodically on components? a kind of
> tick, something with setTimeout?
>
>
there's a core.async 'timeout' function that you can use for a tick in the
form of a channel.



> * how do I share some 'global' state with all components, like screen
> size, mouse position, current pressed keys etc.?
>
>
That all sounds like normal application state to me, IE not the
component-local stuff.


> I've seen that core.async is used a lot for this kind of things, but I get
> the idea (surely wrong) that for each component that wants to be notified
> of changes in those things will have to create a copy of the channel?
>
>
Take a look at the core.async functions 'tap' and 'mult', they're built for
this.

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