Hi David

I managed to fix it by:

1. Changing project.clj to use om 0.3.0
2. lein cljsbuild clean

Thanks a lot for following up ;-)

I am enjoying working in Om/React with ClojureScript ;-)

On 28/01/2014, at 5:23 AM, David Pidcock <eraz0rh...@gmail.com> wrote:

> Did you get this fixed Rudi? 
> If your project file requires om 0.2.3,  then it was something with the lein 
> new command (which is now fixed). 
> I recommend manually changing the project file to require om 0.3.0 and then 
> don't forget to "lein cljscript clean" before recompiling  (which I did). 
>  
> 
> On Saturday, January 25, 2014 1:41:54 PM UTC-8, Rudi Engelbrecht wrote:
> Hi David
> 
> Thank you for a great tutorial!
> 
> I really enjoyed working through your Tutorial on LightTable and Om. 
> 
> A note: In my environment the contact is being deleted when the contact-view 
> has the following code
> (defn contact-view [contact owner]
>   (reify
>     om/IRenderState
>     (render-state [this {:keys [delete]}]
>       (dom/li nil
>         (dom/span nil (display-name contact))
>         (dom/button #js {:onClick (fn [e] (put! delete contact))} 
> "Delete")))))
> 
> 
> 
> and not when it is the following:
> (defn contact-view [contact owner]
>   (reify
>     om/IRenderState
>     (render-state [this {:keys [delete]}]
>       (dom/li nil
>         (dom/span nil (display-name contact))
>         (dom/button #js {:onClick (fn [e] (put! delete @contact))} 
> "Delete")))))
> So the change to
> (put! delete @contact)
> has the effect of the delete button not working anymore.
> 
> I will investigate further.
> 
> Kind regards
> 
> Rudi
> 
>> On Jan 25, 2014, at 11:16 AM, David Nolen <dnolen...@gmail.com> wrote:
>> 
>> A few minor simplifications to the Om model in this release. A breaking 
>> change if you were using om.core/bind, om.core/pure-bind or om.core/read - 
>> these complications have been removed.
>> 
>> There's also now a tutorial optimized for Light Table for people want to 
>> understand the Om approach to React without losing time cobbling together a 
>> working environment: http://github.com/swannodette/om/wiki/Tutorial
>> 
>> Have fun!
>> 
>> David
>> --
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com
>> Note that posts from new members are moderated - please be patient with your 
>> first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com.
>> For more options, visithttps://groups.google.com/groups/opt_out.
> 
> 
> -- 
> 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 clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/clojurescript.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to