If you're the one who ended the relationship, chances are your ex will have complex emotions about that. Be there for them as much as you can be, but understand that they'll need emotional space from you for a bit before they're ready to jump back into hanging out with you all the time.