onStateChange should not be called on setValue