The triggers key feature allows you to specify a key that triggers an undo or redo action. This can be useful if you want to undo or redo an action when the value of the specific key is changed
The custom comparator feature allows you to specify a custom comparator for the triggeredKeys values . This can be useful when you want to compoare the states according to a specific attribute