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 <[email protected]> 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 [email protected]
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected].
> For more options, visithttps://groups.google.com/groups/opt_out
> .
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.