I'm struggling (diligently) with om.next, and having a bit of confusion.  I've 
developed an simple UI with a leaflet map showing some markers, (one component, 
Map-view) and then a simple text div showing info about the clicked marker 
(another component, Selected-assessment).

But I can't seem to add them both, ie

(om/add-root! reconciler
                        Selected-assessment (gdom/getElement "assessment")))
(om/add-root! reconciler
                         Map-view (gdom/getElement "map"))

...fails rather hard (although adding either one works, and both can somewhat 
work with initial data but not once mutations start!).

I do note that the function (app-root) implies that any reconciler has only one 
root.  But surely a page can have multiple components (though I can't find 
examples).  

I'm somehow missing something really fundamental, maybe about hierarchical 
components or something.  How do you have multiple components in Om.next?

-- 
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 https://groups.google.com/group/clojurescript.

Reply via email to