AnimatePresence exit animations cancelled on ancestor unmount in Framer Motion 11
Goal What is the correct pattern for ensuring AnimatePresence exit animations complete before DOM removal when a parent component unmounts the AnimatePresence wrapper during rapid mount/unmount cycles? Constraint AnimatePresence only waits for exit animations while the child remains mounted in React's tree. If an ancestor unmounts the wrapper, React may batc