If the tax is calculated based on residency at the time it was earned or granted rather than when it vested or was sold then it doesn’t matter if they leave.