-
-
Couldn't load subscription status.
- Fork 3.5k
Closed
Labels
Description
Describe the bug
Noticed this when I attempted to update TypeScript as a prerequisite to update the Angular adapter to Angular 18 as the type test failed.
Your minimal, reproducible example
Steps to reproduce
On the TS playground:
Notice both data from useQueries and data2 from useQuery are correctly typed number | undefined.
Switch the TypeScript version to 5.4.5
Notice data from useQueries is now typed as unknown, data2 from useQuery is still correctly typed.
Expected behavior
useQueries data should not be typed as unknown
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Tanstack Query adapter
react-query
TanStack Query version
5.40.0
TypeScript version
5.4.5
Additional context
The Vue adapter has an equivalent type test which also fails, I suspect it's a problem for every framework.