NexAuth and Static/Dynamic Page
Unanswered
Allen's Hummingbird posted this in #help-forum
Allen's HummingbirdOP
I am stuck with a dilemma,
See my page has a enter button.
Enter button redirects to login if user is not autheticated.
Else redirects to profile page.
Now the thing is,
If I use
Dynamic page are more load.
If I use
and
if the session is still loading, I need to use some Skeleton to show while session is loading.
I am aware of partial prerendering too but it's not stable release.
Idk what design decision is good.
See my page has a enter button.
Enter button redirects to login if user is not autheticated.
Else redirects to profile page.
Now the thing is,
If I use
auth() in server components my page will become a dynamic page. Dynamic page are more load.
If I use
useSession() to make my page static with client component and
if the session is still loading, I need to use some Skeleton to show while session is loading.
I am aware of partial prerendering too but it's not stable release.
Idk what design decision is good.