useUrlQueryState
Sourceimport { useUrlQueryState } from "@prestojs/routing";
Arguments:
Argument | Type | Description | |
---|---|---|---|
initialState | initialState | ||
options An object with the properties below | |||
options.controlledKeys | string[]|true | ||
options.location | |||
options.params | ParamsEncodeDecode | ||
options.prefix | string | ||
options.replaceUrl |
Returns:[Record, ]