useUrlQueryState

Source
import { useUrlQueryState } from "@prestojs/routing";
useUrlQueryState(?initialState,?options)
Source

Arguments:

ArgumentTypeDescription
initialStateinitialState
options
An object with the properties below
options.controlledKeysstring[]|true
options.location
options.paramsParamsEncodeDecode
options.prefixstring
options.replaceUrl
Returns:[Record, ]