One thing every parent should remember is that it isn't their divorce that will affect their child the most. Instead, it's how they act during and after that divorce.
Parents who can respect one another and be kind during a divorce are more likely to have children who learn to work through conflicts in the same way. On the other hand, parents who fight tooth and nail are more likely to see children who act out.
You have to look at what you model for your children
Children model adult behavior. It's how they learn. When they see that it's okay for mom and dad to scream at each other, there is a possibility that they will think it's okay to do the same to their parents or to significant others in the future. Children are like sponges, and they absorb everything, even if it's unintentional.
One good thing to do in these situations is to make sure you remove any hint of arguing or fighting from your home. You don't want your children to associate their parents with anger, anxiety and stress. Instead, work through your problems with your spouse. If you can't, handle them when your child isn't around. Most importantly, don't use your child as a messenger.
It's no secret that divorces are challenging, and there is a chance that yours could put you on edge and make you feel like the world is against you. Remember that this situation involves more people than you, and you have to do what is best for your children, even if it means trying to get along during a difficult time.