Skip to content

Dashboard pagination can never leave page 1 on Next 15+ #14

Description

@royalpinto007

Problem

app/page.tsx reads searchParams.page synchronously, but on Next 15+ searchParams is a Promise: .page is always undefined, so page links always render page 1. The sibling run page already awaits it correctly.

Where

app/page.tsx vs app/runs/[id]/page.tsx (await searchParams).

Acceptance

Add a failing test/typecheck first asserting searchParams is awaited (or tsc passes against Next 15+ types). Then fix like the run page.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions