App Router (Beta)

acme.com
/search-params/
?page=2&perPage=10

Updating searchParams

The useSearchParams hook returns a read only version of URLSearchParams. You can use useRouter() or <Link> to set new searchParams. After a navigation is performed, the current page.js will receive an updated searchParams prop.

From the Client

Using useRouter()

Sort
Page
Items Per Page
Docs
From the Server

Using <Link>

Page
Items Per Page
Docs