How to deal with a guy who keeps leaving and coming back into your life?

This guy keeps leaving and coming back. Basically, he comes back, we talk for some time and everything is going well. Then, he just ends up getting mad at me over something stupid & says he doesn't want to talk to me anymore. He blocks me and disappears. A few weeks later he comes back & the cycle repeats. At this point, this just seems like a joke. I feel like he is being immature, yet he always says I'm the problem

How to deal with a guy who keeps leaving and coming back into your life?
Post Opinion