Partial Prerendering not working with auth?
Unanswered
Florian posted this in #help-forum
FlorianOP
I'm using Next-auth (v5) to get the current session server-side inside the
I've enabled partial prerendering in
But the page still loads dynamically. Only if I remove the
Does PPR currently not work if you access
UserMenu.I've enabled partial prerendering in
next.config.js and the log shows that my page should be PPR'ed.But the page still loads dynamically. Only if I remove the
UserMenu does static caching work.Does PPR currently not work if you access
cookies()?3 Replies
FlorianOP
Update: It works now after removing a
useSession left in a child component. This feels like a bug because useSession (client-side) shouldn't affect static rendering, should it?Plott Hound
Yes PPR has many bugs at the moment and generally not stable when deploying to vercel. I’d wait for an update or so until it’s more stable
FlorianOP
thank you