Hi all, I am seeing a component consistently unmount/remount every time the application state changes. If I change the local state instead then it doesn't umount but simply re-renders as I expected.
I didn't expect changes in app-state to cause an unmount/remount only a re-render (as that is my understanding of React's lifecycle). Further, since I am talking about this my assumption (and the behaviour I am seeing) is that om will only call the render protocol method if the values have actually changed. If my assumptions are correct I will see if I can reduce the problem into a simple gist. The reason this is a pain, performance aside, is because a re-mount loses focus and this specific component is a text field. I notice in the discussion on text-fields in the Basic tutorial "text" is component local, maybe now I understand why as this seemed to me to go against the grain of what is advised to go into local state... Can somebody please clarify? Thanks! -- 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.
