What happens to Framer Motion exit animations when a component with the same layoutId remounts before the exit completes?
Goal When a list item that uses a layoutId is removed from the DOM via animatePresence and then re‑inserted with the same layoutId after a short delay, we want the exit animation to finish cleanly without being interrupted by a new enter animation, so the UI shows a smooth fade‑out followed by a fade‑in. Constraints and uncertainty The exact timing of the ex