Skip to content

add support for nested keys in useInfiniteQuery's pageParamKey #569

@rsbh

Description

@rsbh

In our backend APIs, the page/offset key is not at the root level. Instead, it is nested inside the query key, e.g.

{
    "query": {
        "search": "",
        "page": 1
        "sort": {
            "key": "name",
            "order": "asc"
        }
    }
}

We were using version 2.1.1 before and set query as pageParamKey. It was working before. but after these changes , they stopped working.

An ideal fix will be to add support for nested keys in pageParamKey, e.g., query.page

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions