Framer Motion AnimatePresence not triggered changing between catchall pages

Hello everybody! I hope I can find help here. I’m trying to combine Plasmic, nextjs and framer-motion with the feature to animate page changes. The problem seems the components of the catch all page ([[…catchAll]].jsx) are not fully removed and like that the component is not triggered. It’s only working when changing between “static” pages I created in pages folder and the catch all page. I’m thankful for all kinds of hints! :slightly_smiling_face:

This is more or less the setup I use: https://wallis.dev/blog/nextjs-page-transitions-with-framer-motion but additionally the use of a catchAll page (https://docs.plasmic.app/learn/nextjs-quickstart/).