Skip to content

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

Open
@PouryaNoufallah96

Description

@PouryaNoufallah96

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions