Unverified Commit ce60157b authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Fix useSearchParams comment (#41483)

Co-authored-by: 's avatarBalázs Orbán <info@balazsorban.com>
parent 7a8c58fe
......@@ -69,7 +69,8 @@ class ReadonlyURLSearchParams {
}
/**
* 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
* Learn more about URLSearchParams here: https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams
*/
export function useSearchParams() {
const searchParams = useContext(SearchParamsContext)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment