How do you handle with someone who's giving hot and cold attitude?

It's been more than 3 years. The thing is.. A lot of thing has been going on in our relationships.. lots of ups and downs between us but we always manage to work it out. Me and her are not in an official relationship (like boyfriend girlfriend). But our communications and interactions with each other are like couples. I really love her and gave her all my energy, time and efforts. I always deliver every promise that I made and always be there for her. I would also be the one who text or call first.

When I confessed to her, she didn't say yes but she admitted that she know I love her, saw all my efforts and really appreciate everything that I've done for her. She even said that I'm special and mean everything to her, more than just a friend (no, she didn't think of me like a brother or anything like that). We even had a a lot of sweet moments after that like video calls, sleep calls, going out with each other, etc..

However, it didn't last long as she would suddenly ghosted me a lot and giving dry replies. There were no more video calls or sleep calls, she barely respond to my text and we don't go out like we used to anymore. It confuses me and it had been going on for so long to the point where I got scared and can no longer text or call her first.

I've tried asking her for clarification. I even asked her to be honest and truthful if there was another guy. She said there was no other man. It's just she can't reciprocate my feelings because she's not into that kind of commitments yet. She even told me to just find another woman and don't wait for her.

Of course, it broke my heart as I have done so many things and been nothing but loyal her. After that, I stop "chasing" her and try to move on. But, as I'm trying to heal myself, she would suddenly contacted me again, being super sweet and pampered, gave a lot of attentions and act as if she forgot what she said to me before.

Updates
+1 y
There's a moment where I try to do like what she did to me. She didn't like and even said something sarcastic like :

"Ohh you still have your phone huh, I thought you already threw it away since you been ignoring me lately"

She would then sulk and I have to make her happy again.
Till this day, we still not a couple and there were no real answer from her.
Does she actually love me too or not? Does she even want me? Is this a test from her? why?
Have you ever came across the same problem?
Updates
+1 y
Today (3rd July 2024), It's been almost 2 months since we last contacted each other. Like I said, I don't text or call her first anymore due to the "trauma" of what she did to me. All I do now is just wait for her to text whenever it is "convenient" to her or when she's "free".

To make things worst. My feelings for her are still the same. I still love and miss her so much. For now, I can only look at the pictures and videos of her in my phone gallery.. remembering all the good time that we had.
How do you handle with someone who's giving hot and cold attitude?
Post Opinion