Skip to content

Commit ce60157

Browse files
Fix useSearchParams comment (vercel#41483)
Co-authored-by: Balázs Orbán <[email protected]>
1 parent 7a8c58f commit ce60157

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/next/client/components/navigation.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ class ReadonlyURLSearchParams {
6969
}
7070

7171
/**
72-
* Get the current search params. For example useSearchParams() would return {"foo": "bar"} when ?foo=bar
72+
* Get a read-only URLSearchParams object. For example searchParams.get('foo') would return 'bar' when ?foo=bar
73+
* Learn more about URLSearchParams here: https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams
7374
*/
7475
export function useSearchParams() {
7576
const searchParams = useContext(SearchParamsContext)

0 commit comments

Comments
 (0)