Few months backs my project was changed and I was moved to a new team. It is a small team and I was the only person who was new to the framework we were going to work.

The first month I was assigned relatively easy tasks so that I can spend time learning and exploring the project. During that time most of the pull request I submit goes through 2-3 review cycle(by my manager) and I generally end up doing completely opposite of what I initially thought and implemented.I learned a lot during that time.

But now I have a fair amount of knowledge about the project and framework.
But I still get a lot of review changes(by my manager) no matter how hard I worked. Initially, i thought it must be me doing something wrong but now I think manager always want to complain.

For example:

Problem-1:
I used Approach-A and he complained that Approach-X is better.

Problem-2:
I used Approach-X and he complained that use Approach-B it is better.

Problem-3:
I used Approach-X and he complained that use Approach-A is better.

Problem-1,2,3 were quite a similar problem.

If I try to explain why I have used this approach he would tell me that you don't listen to me.

And these things go on. If I do X he would say to do Y. And I do Y he would say X.

Only things that is constant is that no matter what I do he would complain.

This attitude of him is really annoying me. And I don't know what to do.