Maybe I'm missing something, but doesn't transact! take a cursor which 
encapsulates the path into the application state? 
(https://github.com/swannodette/om/wiki/Documentation#transact)

On Saturday, March 29, 2014 7:15:55 PM UTC-4, Daniel Bell wrote:
> Perhaps you can help me understand.
> 
> What I should have said is that when a component needs to be able to 
> communicate with other components, or effect changes to state that's outside 
> of (or hidden within) the cursor provided to a component---then the path to 
> that state needs to live somewhere.  The ultra-naive way to do it would be 
> 
> (defn click-button [app owner]
> (om/component
>   (dom/input #js {:type "button" :onClick #(transact! app :clicked true)}))
> 
> It is certainly possible to inject the path, but I haven't hit upon an 
> orderly way of doing that yet (though I'm looking at sgrove's path/transform 
> solution). 
> 
> Am I missing something obvious?
> 
> Thanks,
> 
> Daniel

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