Time ago I tried that supplying the FC with a power bank through the USB connector during swap. It worked, although the remaining battery capacity was not initialized, and eventually was exhausted (I had to make it five times that of the battery for five batteries).
So the FC was missing recognizing the battery swap. This happened long time ago; I don’t know what happens now with recent FC firmware versions.