how to handle logged in user tile?
Unanswered
Asiatic Lion posted this in #help-forum
Asiatic LionOP
Since the login is a server side component, i have observed that if I put a usertile in header in a layout, all the pages become dynamic. I am wondering what is most opiniated way of handling such scenarios.
Also are we suppose to get user session using
Also are we suppose to get user session using
const session = await auth() in all the components, or there is a better singleton way.2 Replies
with experimental ppr, you can make a suspense boundary and still have most static, but for now without risking lots of bugs it has to either be all dynamic or client initiated sadly
fwiw, on the pages that I dont do much, i just use edge runtime so its still fast (on vercel)