Could it be that 0.6.1 doesn't trigger a re-render of a component when
just `:opts' has changed? I have a parent component with passes a
boolean (`:selected?') down to it's children in the `:opts'-map.
The parent-component's `render' is called, but the children's isn't anymore.

I understand that this might be the expected (and even sensible)
behavior. Still, it's a difference and it might be worth mentioning.

(Btw. I see some *massive* improvements in eliminating non-changed
branches, it's awesome)

On Thu, Apr 24, 2014 at 7:03 PM, David Nolen <dnolen.li...@gmail.com> wrote:
> Om 0.6.1 significantly changes how component local state works - we now rely
> on React's forceUpdate to update components that use local state. This is a
> significant change so I would like people test this out on their existing
> code bases as soon as possible.
>
> The immediate benefit is that components now use `=` for the
> shouldComponentUpdate logic instead of `identical?`. This means considerably
> more flexibility with regards to what a component may receive without taking
> a performance hit with respect to rendering. Even more importantly it's a
> big step towards independently addressable components.
>
> What are independently addressable components? Currently many people
> struggle with the fact that parent components must take all the data
> associated with their children. This often results in a tight coupling that
> is not ideal for real applications. The next few releases of Om will be
> focused on providing a sensible solution to this issue without backing away
> from the existing efficient time travel capabilities.
>
> Feedback welcome!
>
> http://github.com/swannodette/om
>
> David
>
> --
> 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 clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/clojurescript.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to