Now, for whom to share with - depends on how close you are with your team and how your team deals with news. Some teams will immediately spread news, but that may not be a bad thing. As I mentioned before, we're all human, if you were good to your team in tough times, they will be good to you in tough times too!
This is NOT limited to "managers"!!
Everyone has homelife impacting work-life
And vice-versa
I have 4 young children (about to be 5) ranging from 10 to not-yet 2
They matter
My wife matters
My home * matters*
My work matters
If you overly compartmentalize, you are either highly autistic, or have no sense of empathy ... or you are panicked, and think shoving everything into its own box will somehow solve everything else!
You are allowed to feel what you are going through - and it IS going to 'leak out' into other arenas of life!
I feel the issues my wife is having with this pregnancy ... and while I do my best to alleviate her concerns/problems ... sometimes life is life, and you just Have To Deal With It™
Accept the problem exists, approach it rationally and fairly, and hire an expert to deal with the nitty gritty details.
The more emotional and difficult you make the divorce, the harder it will be to resolve and the same goes for your partner.
Try to avoid extra stress at work. Speak to your own manager and ask about temporarily reducing workload if you feel like they would be responsive to supporting you at this time.
Communication is key at work and at home. Leave any bitterness and emotional anguish at the door. You’ve both decided to move on. If you have children, find the best solution for them first. There’s nothing worse than squabbling ex-partners screwing their children’s lives up.