Skip to content

useInfiniteQueryState and useInfiniteQuerySubscription require combined arg #4862

@bromanazzi

Description

@bromanazzi

Codesandbox: https://codesandbox.io/p/sandbox/w39kyg

useInfiniteQueryState and useInfiniteQuerySubscription require the combined arg as a parameter. Is this intentional? Shouldn't it ask for queryArg only, like the regular hook? The pages are grabbed fine with no argument, but typescript wants the { pageParam, queryArg } combination.

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