Have you ever been in a sudden emotional slump where you feel worthless, your life seems to have lost all color, and you can't get interested in anything?
Welcome to this supportive space, a warm haven for those experiencing depressive moods. I can feel the depression, pain and despair in your heart, and I hope that here you will find some warmth, camaraderie and strength to help dispel the gloom in your mind.
When you express such thoughts as "I feel so useless and there is no point in living", I can realize your deep denial of yourself and your powerlessness in life. Behind this emotion, there is often a hidden desire for a better life. This inner conflict - wanting to change and feeling helpless - can exacerbate self-criticism and make it difficult for you to feel happy in your daily life, thus getting you into a vicious cycle of feeling more and more miserable and unable to break free.

Perhaps you don't realize that deep down you have a "trust" in yourself, but it's negative - you're convinced that you're useless, not that you're capable. Reflect on when this self-defeating belief began. How do you feel inside when you think this way? This can help you understand more about the root of your emotions.
You mentioned that it was a "momentary" feeling, which implies that this disinterested state is short-lived. Most of the time, you are probably curious about many things and still have good expectations and attachment to the world and life, which is your true self.
In contrast, your instincts will choose to stay connected to the world rather than give up on life. When you begin to value your existence, you will feel joy and rediscover the value of life by proactively finding ways to fulfill needs in real life and gain respect, understanding and support.
Suggest that you think about how you approach your thoughts in your daily life? Do you respond to yourself in a timely manner when a need or inspiration arises? If not, try acting on what your heart tells you, or giving yourself satisfaction within reason, while following the rules of society and keeping your words and actions consistent. Observe the changes within as you do so.
Three feet of ice does not form in a day. Your distress likely did not develop in the short term, so addressing it will require a gradual process. Consider making an appointment with a professional mental health counselor for systematic support, which can be an important step toward recovery.