(newbie warning!)
I have a component which takes the app-state and renders it beautifully (for 
example a table of contacts) - great.

[code]
(defn mount-om []
  (om/root 
    original-component
    app-state
    {:target (. js/document (getElementById "my-app"))}))
[/code]

Now I create a "wrapper" component of the form:

[code]
(defn wrapper [app owner]
  (reify
    om/IRender
    (render [_]
      (om/build original-component data))))

(defn mount-om []
  (om/root 
    wrapper
    app-state
    {:target (. js/document (getElementById "my-app"))}))
[/code]

And I can see the table my original component produces but it is empty. 
original-component is treating its data as a map so it is simply (om/build-all 
(dom/li ...) (:contacts data)).

I can create a trivially simple project on github if that isn't clear?

I don't understand how simply wrapping it in a component can change the nature 
of the cursor that original-component sees? I have almost certainly missed 
something here :).

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