As far as I know, yes, it is expected that components only get updated when
the part of the app state that they have a cursor too is modified.

So if you have cursor A pointing at :domain and cursor B pointing at
:services, then modifying cursor A will not trigger component with cursor B
to up date and modifying cursor B will not trigger component with cursor A
to update.

This is because it is expected that a components output is a pure function
of its input (cursor + local state) so it only gets updated when its input
changes.


On 24 May 2014 21:25, Roger Gilliar <[email protected]> wrote:

> I have the following data:
>
>  {  :domain "a domain"
>     :customer-info { :customer-nr "a number" }
>     :services [{:name "a service}] }
>
>  {  :domain "another domain"
>     :customer-info { :customer-nr "a number" }
>     :services [{:name "a service}] }
>
>
> The problem is that even if the domain changes but services does not
>  om/IWillReceiveProps is not triggered for the component that uses a cursor
> to services. It works if I add an unique id like this:
>
>  {  :domain "a domain"
>     :customer-info { :customer-nr "a number" }
>     :services [{:id1 :name "a service}] }
>
>  {  :domain "another domain"
>     :customer-info { :customer-nr "a number" }
>     :services [{:id 2 :name "a service}] }
>
> Is this expected ?
>
> --
> 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