wouter-vue Documentation

useSearch

Get the current URL search string (query string).

Description

Returns a reactive Ref<string> containing the current URL search string (everything after ? in the URL).

Returns

Example

Parse Search Params

To parse the search string into an object, use useSearchParams() instead:

Built with wouter-vue • GitHub