46 Male in Texas

Two boys ages 3 and 8 . Married 20 years.

My wife is the breadwinner but I work and the family is on my insurance.

What do I need to do before filing , like ducks in a row , etc ….What are things you wish you knew before filing or getting a divorce ?

Just like completely lost at the moment

Thank you