useUrlQueryState

Source
import { useUrlQueryState } from "@prestojs/routing";
useUrlQueryState(?initialState,?options)
Params:
ParameterTypeDescription
initialStateinitialState
options
An object with the properties below
options.controlledKeysstring[]|true
options.location
options.paramsParamsEncodeDecode
options.prefixstring
options.replaceUrl
Returns:[Record, ]