Trigger application:readOnly event only if the state changes