Setting model as dirty when custom transform is updated

Hi everyone,

Is there a trick to set models as dirty when a custom transform property updates? Right now, I have an external flag in the controroller to remember if a property was changed, but it would be nice if I could just set the isDirty flag to true.

Bogdan

what do you mean by “when a custom transform property is updated”? Transforms just serialize/deserialize values from the API to the cache. They don’t affect any model behaviors.

exactly. And the isDirty flag is readonly. My question is if I have a custom object as a model value, how can I set that isDirty flag to true when I mutatat that object? It works if I set the whole value again, but if I do this, views that has changes won’t be refreshed.

So far, I am using a custom flag, and I was wondering if there is a better way to do this.