It doesn't seem to work properly in asynchronous server-side components.(nextjs13) #43
-
It seems that the server component does not work normally. For example export default astnc function TestServerCompo{ is it right? should i use "import { cookies } from 'next/headers'"? |
Beta Was this translation helpful? Give feedback.
Answered by
andreizanik
Jul 14, 2023
Replies: 1 comment
-
Hello! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
crow-yang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
If you want to use it on the server side, call functions with
req
andres
.Example from the documentation