It was before he went to Spain and saw the evil trap of the communist "solution"... before he was enlightened by his 1st hand on the ground experience of the tyranny of socialism - even when you were fighting on their side. It is from this later real 1st hand experience, AFTER "The Road to Wigan Pier" that Orwell wrote the the works (1984, Animal Farm, etc.) that he is now known for.
There are aspects of his discomfort with socialism in Wegan Pier.
Don’t misunderstand me please. I’m not running down Orwell. I read Animal Farm as a child and it was formative.