Quantcast
Viewing all articles
Browse latest Browse all 4972

Trigger Changed events on array methods

This is expected (although unfortunate) behaviour. The change signal will only be emitted if the value of the property itself changes, and in your case, the value of the property remains unchanged (ie, it is a reference to the array) even though the content of the array changes. For sequence types defined in C++, the semantics are more intuitive but element-wise updates of a sequence are discouraged for performance reasons if you’re updating multiple elements at the same time. More discussion about the way change signals for sequence types (and value types, which are similar) are emitted exists in the performance considerations documentation. Cheers, Chris.

Viewing all articles
Browse latest Browse all 4972

Trending Articles