Is it considered toxic to avoid your ex?

I thought it was natural for someone to avoid their ex after a breakup. But I saw someone say that's toxic behavior and you should make an effort to at least say hi. Obviously not every situation is going to be the same, but what is considered the more "natural" approach?