Skip to content

react query useQueries doesn’t accept an abort signal #5342

@jasikpark

Description

@jasikpark

Describe the bug

The types for useQueries in the react query alpha doesn’t accept an abort signal handler to be passed to the query function.

Your minimal, reproducible example

https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgVwM4FMCKz1WO1OAXzgDMoIQ4ByAARgEMA7VRgYwGsB6KdBtmAFoAjjigBPagFgAULLhsILeL1TIANvAC8KDNlz5UACgTy450QYIAuOAG0z586ZlO3cSxIDS6cbbvUpBAQ1AC6ADSO7p7iAGJMtiZwqMAA5kwM6sQAlHBaAHxwAAoUIMAYAHSqEOoAbuhGgcHU2ZGu7kRtbhFmRNkA3EA

Steps to reproduce

Run the ts playground

Expected behavior

I expected useQueries to accept query configs that are the same as a useQuery config.

I would really like for #5153 to support creating a query config that can be passed to useQuery or useQueries

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

macOS, Arc

Tanstack Query adapter

react-query

TanStack Query version

v5.0.0-alpha.21

TypeScript version

v5.0.4

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions