onlyChanges

Creates a StateObserver that only reacts to actual state changes (not same state).