Time spent by a Texas domiciliary outside this state or outside the county of residence of the domiciliary while in the service of the armed forces or other service of the United States or of this state, or while accompanying the domiciliary’s spouse in the spouse’s service of the armed forces or other service of the United States or of this state, is considered residence in this state and in that county.
Tex. Fam. Code ยง 6.303