Best practice for get session data from a React Server Component in Next.js 12 #3308
Unanswered
KlotzJesse
asked this question in
Help
Replies: 1 comment 1 reply
-
RSC in Next.js (and in general) is experimental at the moment, and I haven't had the chance to look into it yet. When it gets more stable, I'll start exploring. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
is there currently any (best) practice or either a possiblity to access the session data from a react server component, as there is no connection to the client or even the client request?
Therefore requesting an API endpoint is useless as the server makes the request and therefore the request from API endpoint view doesn't contain any session data.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions