live edit currently does a full-compose-hierarchy refresh every live edit, which means that states are returned to their initial values (including navigation state). This is how it works currently, but we are prototyping a version of live edit which only resets state in the function you are making edits to, which should solve most of this class of “bug”. It is something we have been aware of since the beginning, and designed live edit to work around, but haven’t yet gotten that part of the system into a stable enough state to let you all try it out.