-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Describe the bug
It's not possible to call useSuspenseQueries with an array of UseSuspenseQueryOptions / SuspenseQueryOptions:

Your minimal, reproducible example
https://codesandbox.io/p/devbox/rough-brook-drv2hx
Steps to reproduce
const [{ error, data }] = useSuspenseQueries({
queries: [getSuspenseQueryOptions()],
});
function getSuspenseQueryOptions(): UseSuspenseQueryOptions<ValueType, ErrorType> {
return {};
}
type ValueType = { some: string; value: string };
type ErrorType = { error: unknown };Expected behavior
UseSuspenseQueryOptions can be used in useSuspenseQueries
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Windows 11
Any browser
Tanstack Query adapter
react-query
TanStack Query version
5.62.2
TypeScript version
5.7.2
Additional context
No response
dlindenkreuz