The only instate quality that matters for your instate medical school is the legal state of your residence at the time you apply. Going OOS to an undergrad school will not affect that status as long as you do what is needed to maintain your instate status, eg , voting residency, drivers license, tax residency etc.
1 Like