Is there a way to detect change of fields on `afterUpdate` hook?

I found a nice way of doing that with event.state which can be generated in beforeUpdate by simply doing event.state = myState to detect what changed and then sent to afterUpdate. This way you can know what changed and perform operations on the updated object.

2 Likes