How do I stop this Framer Motion AnimatePresence console warning in React Router?
I’m using React Router 6 and I want to animate the page transitions from links in a separate Nav component. If I don’t set AnimatePresence mode=”wait”, then the pages don’t wait for each other’s animation to finish and components are blinking in immediately. However, if I do set it to wait, then I’m getting the following warning in the console every time a link is clicked: