Transform the data as needed and pass the transformed data only to the
components that need it transformed. Eg:

(defn my-component [props owner opts]
  (om/component
    (dom/div nil
      (om/build component-raw-data (:data props))
      (om/build component-transformed-data (transform (:data props))))))

But you can also create a new cursor:

(om/build component-transformed-data {:transformed-data (transform (:data
props))})

or

(om/build component-transformed-data props {:fn (fn [c] (assoc c :data
(transform c)))})

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