useQuery
Hooks for react-router query parameters.
Source code is hosted on GitHub
useQuery()
Read and update URL query from your React component:
By default, parameters like ""
, null
, undefined
, 0
and "0"
are stripped, the default value will be used instead. Updating the query with one of those values won't change anything. You can alter this behavior by providing a second argument, overriding values that should be stripped away:
Last updated