next-learn icon indicating copy to clipboard operation
next-learn copied to clipboard

Partial Pre Rendering is not working on production when using searchParams in a rsc page as props

Open PouryaNoufallah96 opened this issue 1 year ago • 0 comments

hello. when im using searchParams as props like below:

const Page = ({ searchParams, }: { searchParams?: { page?:string, order?:string } }) => { ....

and then use Suspense on the component that actual data fetching is happening inside it, then its not working in production. but when i remove the searchParams and pass the params manually to the fetcher component then it will work

PouryaNoufallah96 avatar Feb 16 '24 21:02 PouryaNoufallah96