Themes

Router/Utils/searchParam
searchParam

Create a search param tracker, to set and update a search param in the current location.

(key: string ) => SearchParamTracker

SearchParamTracker

Name
Description
Type
key

The key of the search param.

string
value

The current value of the search param.

undefined | string
delete

Remove the tracked parameter.

() => void
set

Set the value of the search param.

(value: string ) => void