I'm trying to work through the Om tutorial, but there are a lot of underlying concepts that are not well explained.
Within om, there seem to be a lot of functions that take a cursor and an owner and return a component (typically using reify). Let's call these functions component-generators. I've basically worked out that om/root creates a top-level cursor generated from the app-state map, some kind of owner generated from a dom element, and calls your component-generator with the cursor and owner. It appears that owner is responsible for maintaining the component's local state, and also has some knowledge of what piece of the DOM it is connected to. It appears that get-node is sort of like getting a node by ID, but it uses ref and presumably searches only within the part of the dom referred to by the owner object. This summarizes my hazy understanding of what is going on, but as you can see, it's pretty fuzzy. What exactly is an owner, and what information does it track? Why is the name "owner" relevant? Are there any other good descriptions of the mental model you need to have of the underlying Om concepts in order to make sense out of the library? -- 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.
