On Thursday, June 26, 2014 1:11:26 PM UTC-5, Roger Gilliar wrote:
> The first button does not receive a cursor but a map containing cursors. The 
> following works for button 1:
> 
> (defn log-state
>   [state]
>   (prn @(:x state)))

Thanks Roger, I misunderstood this 
https://github.com/swannodette/om/wiki/Cursors#using-multiple-cursors

I expected the map to be wrapped in a cursor.  I'm wondering if it should be 
wrapped or have some mechanism for creating a subcursor from siblings.  It 
would be nice to use cursors throughout rather than a mix and match.

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