The plaintiff in an action for divorce or separate maintenance must, at the time the action is commenced, be a resident of this state, or be stationed in this state while a member of the armed services. Subsequently, the plaintiff need not maintain that residence or military presence to be entitled to the entry of a decree or judgment of divorce or separate maintenance.
SDCL 25-4-30