The documentation says that afterStateUpdated does not work when a field changes via $set(). Sometimes, however, instead of the user, the field is just changed by $set(). How to deal with this?
For example, I have qty, price and total fields. The price field is ->live() and has afterStateUpdated() in which I set the total field after changing the price value. However, in some situations, the price field is set by $set(). How then to update the total field?