How can I safely roll back a Framer Motion animation after a layout schema change using the `animatePresence` feature?
When a component tree undergoes a schema change—such as adding, removing, or reordering elements that are animated with Framer Motion—there is a risk that exit animations may be interrupted or that the rollback leaves the UI in an inconsistent state. Using `animatePresence` allows components to animate out before unmounting, but ensuring that the rollback pr