Next.js Discord

Discord Forum

How to avoid a context warning ?

Unanswered
Nergal posted this in #help-forum
Open in Discord
I get this error message every time I go on a page in my nextjs 14 app (using app directory) :
Warning: Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.

I know where it comes from, I have a file that ensures the exit animation of my framer motion AnimatePresence and thus might cross contexts (as you can see in my screenshot). I've searched for ways to keep it working and avoid the warning with no success.

Is there a way to fix this ? And if not, to at least remove the warning in the console. I already added __NEXT_PRIVATE_PREBUNDLED_REACT=next to my .env

Thanks in advance for any guidance !

0 Replies