79345431

Date: 2025-01-10 10:53:01
Score: 2
Natty:
Report link

you should be able to do like below

export default async function Page({ searchParams }: { searchParams: Promise<{ hello: string | undefined }> }) {
  const { hello } = await searchParams
  // your code here
}

Please check the docs https://nextjs.org/docs/app/api-reference/file-conventions/page#searchparams-optional

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Arief Setiyo Nugroho