One more strange thing here:
om/IRenderState
(render-state [_ state]
(let [services (get-in app-state[:selected-domain :services])
first-name (get (first services) :name )]
(println first-name)
(if (:show state)
(dom/div nil
(om/build header/component (get-in app-state
[:selected-domain]))
(om/build customer-info/component (get-in app-state
[:selected-domain :customer-info]))
(om/build service-info/component services
{:init-state {:selected-service first-name}}))
(dom/span nil ""))))))
(println first-name) works but first-name is transfered to
service-info/component as nil. Transfering a fixed string works.
--
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.