Analyzing Om source, I see the following code path executed everytime you
change the application state:

1- om/render-all is called as a callback for requestAnimationFrame
2- dom/render is called for each root binding
3- om/build is called for the component function of the root binding,
component is instantiated and wrapped in a om/Pure class. Child components
are NOT instantiated because the render/render-state function is not yet
called.
4- React.renderComponent is called for the newly instantiated root component
5- React.renderComponent calls the shouldComponentUpdate from the Pure
class.
6- shouldComponentUpdate (for example) returns false as the component
doesn't needs to be updated because the data pointed by his cursor didn't
changed
7- because no update is needed, React.renderComponent never calls
render/render-state, so the children components (if any) are never
instantiated

So my question is: How React knows if there are *children* components
needing updating, if they are never instantiated when his parent (owner?)
returns false to shouldComponentUpdate?

Note, I'm very new to Om so maybe I'm misreading this behaviour.

Saludos,
Nahuel Greco.

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