8 CFR § 316.5 Residence in the United States.
(a) General. Unless otherwise specified, for purposes of this chapter, including §316.2 (a)(3), (a)(5), and (a)(6), an alien's residence is the same as that alien's domicile, or principal actual dwelling place, without regard to the alien's intent, and the duration of an alien's residence in a particular location is measured from the moment the alien first establishes residence in that location.
(5) Residence during absences of less than one year. (i) An applicant's residence during any absence of less than one year shall continue to be the State or Service district where the applicant last resided at the time of the applicant's departure abroad.
(ii) Return to the United States. If, upon returning to the United States, an applicant returns to the State or Service district where the applicant last resided, the applicant will have complied with the continuous residence requirement specified in §316.2(a)(5) when at least three months have elapsed, including any part of the applicant's absence, from the date on which the applicant first established that residence. If the applicant establishes residence in a State or Service district other than the one in which he or she last resided, the applicant must complete three months at that new residence to be eligible for naturalization.
[You don't run a risk of breaking residence until you are gone for 6 months (see 8 CFR 316.5(c)(1)), UNLESS, you affirmatively relocate to a new permanent address either abroad, in which case you USUALLY lose naturalization eligibility, OR to another State, where a new 3 month period begins (however, even for this IF you file before you move, you just get the already filed N-400 transferred without starting the 3 months over again (see 8 CFR 334.17 is completely out of date and useless BUT INA 335(f) takes precedence here.))]
INA 335
(f) An applicant for naturalization who moves from the district of the Service in the United States in which the application is pending may, at any time thereafter, request the Service to transfer the application to any district of the Service in the United States which may act on the application. The transfer shall not be made without the consent of the Attorney General. In the case of such a transfer, the proceedings on the application shall continue as though the application had originally been filed in the district of the Service to which the application is transferred.
With online address changes that trigger transfers, USCIS has done away with any "discretionary decision-making" and it just happens.