The wife's H4 visa status will terminate upon the entry of the divorce judgment. If she wants to try to stay in the U.S., or wants to know her options for returning to the U.S. if she leaves after the divorce, she should speak with an immigration lawyer, the sooner the better.

The custody issue could also be complicated, if the father seeks custody and she has a questionable ability to travel to the U.S., so she should discuss custody plans with a divorce lawyer, and make sure she also discusses immigration issues that could arise around visitation with her immigration lawyer.