Pass searchParams from Server Component to Client Component cause page change to dynamic #66936
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
conduongtong
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
When passing searchParams to Client component, page will auto change from static page to dynamic page when
next build
Edited: passing searchParams to Server Component also get that problem
Is that expected behavior?
I know I can use useSearchParams() but why? I can pass it like props
Thank you.
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions