What I would like to see is something like :shared but only shared within a
subtree, so for example:
(defn child [app owner]
(om/component
(dom/p nil (str "Yo, I've got"
(om/get-shared owner :some)
:state))))
(defn parent [app owner]
om/IShared
(shared [_]
{:some :state})
om/IRender
(render [_]
(om/build child app))
This way you can share state with child components and you don't have to deal
with channels/callbacks as much in certain situations. What do you think?
--
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.