If we call set_state from inside a condition then it should set both