We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a8c58f commit ce60157Copy full SHA for ce60157
packages/next/client/components/navigation.ts
@@ -69,7 +69,8 @@ class ReadonlyURLSearchParams {
69
}
70
71
/**
72
- * Get the current search params. For example useSearchParams() would return {"foo": "bar"} when ?foo=bar
+ * 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
74
*/
75
export function useSearchParams() {
76
const searchParams = useContext(SearchParamsContext)
0 commit comments