useUrlQueryState
Sourceimport { useUrlQueryState } from "@prestojs/routing";
Params:
| Parameter | 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, ]