Great, thanks! That makes a lot of sense and sounds quite useful.

On 1 May 2014 20:35, Dylan Butman <[email protected]> wrote:

> IWillReceiveProps is trigged when component props change (cursor passed
> into om/build). Not called on initial render
> http://facebook.github.io/react/docs/component-specs.html
>
> This differs from IWillUpdate in that IWillUpdate is trigged when local
> component state changes as well. In React, the convention is to use
> willReceiveProps to update local state in response to prop changes. If you
> were to change state in willUpdate you could cause an infinite loop (React
> internals prevent this, but it's a bad idea!).
>
> I added IWillReceive props to the docs with a little more explanation on
> the differences...
>
> --
> 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.
>

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