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 updatedsearchParams
prop.