Do not update state if it didn't change