As elegant as that is, Abrams’ choice to not have her disappear until he dies later confuses that. Her body disappears when she dies, Poe talks to a comatose Leia before her body disappears. It’s complicated to fix all of that continuity.
It’s possible that her body could disappear when the Resistance departs towards Exegol.