{
  "id": 7282873,
  "title": "Using searchParams in a Next.js Page Silently Opts It Out of Static Rendering Too",
  "url": "https://urgent.news/2026/09/14/using-searchparams-in-a-next-js-page-silently-opts-it-out-of-static",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-14T08:49:10.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/anas_sheikh_2/using-searchparams-in-a-nextjs-page-silently-opts-it-out-of-static-rendering-too-8am"
  },
  "original_language": "en",
  "account": "Using searchParams in a Next.js page can cause it to be treated as dynamic, even if the page doesn't actually use the query parameters. This is because Next.js checks if a component accepts and reads searchParams, regardless of whether it is used to change the page's output. This can lead to unnecessary dynamic rendering, which can negatively impact caching and performance. To avoid this issue, check your build output for pages that accept searchParams but don't use it to change the rendered content. If a page doesn't need to vary based on query parameters, simply remove the searchParams prop from the component's type signature or destructuring. If the params are genuinely needed for a small, specific piece of UI, consider using useSearchParams() inside a small client component to handle them without forcing the whole page to be dynamic.",
  "summary": "I wrote earlier about a buried cookies() call silently forcing an entire page into dynamic rendering. searchParams causes the exact same category of behavior, through a completely different, and in some ways more surprising, mechanism, since using it doesn't look like reading anything server-specific at all. Why This One Is Extra Surprising cookies() and headers() at least sound like they're…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}