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








tab1 tab2 tab3
selected tab: tab2

Result

{
    "str": "",
    "pets": [],
    "bool": false,
    "withDefault": 42,
    "checky": [
        "1"
    ],
    "tab": "tab2"
}