Skip to content

[Typescript] Type error when using useInfiniteQuery hook #709

@AleVul

Description

@AleVul

Describe the bug
Attempting to use useInfiniteQuery with ts throws a type error related to query function

To Reproduce
See this codesandbox

Expected behavior
To not fail type check

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Pop!_OS 20.04 LTS
  • Browser: chrome
  • Version: 83.0.4103.116

Additional context
Using ts version 3.9.4 and react-query 2.4.13

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