But in the day of adversity consider:
Surely God has appointed the one as well as the other
So that man can find out nothing that will come after him."
(Ecclesiastes 7:14 New King James Version)
I find my self often saying in my prayers Lord, I receive your blessings and also your chastening -- the rewards of being a Christian as well as the difficulties thereof. This is important because each together, in proportion, is the whole Love of God.
So when you experience heartache, realize that you're in the process of becoming a better you -- be thankful.
God bless you,