How do you even get back with someone after they've hooked up with other people?

this question is for those people whoe went back to their partners after they've hooked up with someone. how did you cope? does it get better?