On Thu, Apr 10, 2014 at 5:02 AM, Dimitris Stefanidis
<[email protected]>wrote:

> I was thinking about the same too and was trying to find a way to apply
> this in om since this problem appears too often.
>
> It would be nice if I could have a products vector in my state and a
> selected products vector. The products list component would get both
> products and selected products cursors and would add any selected items in
> the selected products cursor. Other components could get the selected
> products cursor and display summaries detailed lists e.t.c.
>
> This way components do not have to know anything about the structure of
> the application state. Of course there might be other caveats in this
> approach that are probably missing me.


This sounds like shared state information to me. Sometimes this will be
best handled by communication over channels, other times it will be better
handled by my proposed enhancement.

David

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