useQueryParams
Params configuration
{
"str": {
"type": "string",
"defaultValue": ""
},
"num": {
"type": "number"
},
"pets": {
"type": "string[]",
"defaultValue": []
},
"bool": {
"type": "boolean",
"defaultValue": false
},
"withDefault": {
"type": "number",
"defaultValue": 42
},
"checky": {
"type": "string[]",
"defaultValue": [
"1"
]
},
"tab": {
"type": "string",
"defaultValue": "tab1"
}
}
Update params
Result
{
"str": "",
"pets": [],
"bool": false,
"withDefault": 42,
"checky": [
"1"
],
"tab": "tab3"
}