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
can you please narrow down in which version this broke? We did a lot of type changes lately. What works is using
queryOptions, which is the recommended way:https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBAbwFB1XArgZwKYGUtjYB2OAiutlMNpgDQpoCOFUAngPJgzAQn0C+cAGZQIIOAHIAAjACGJOQGMA1gHoo2WYpgBaZpVYSA3EiSLemeAG0EcSqKi04AE1ly4-ALpwAvBhz4mIQk2OSU1JgAFMhocPpUNABccFYgrGFsnNwWkQCUngK5JkhC6ETaPERwaRkcXJVRuYgMqBow6FBV8XXZJNEtTCysANLYrMlWEkIQEBIFA6jdAGJEyXm+AHxwAAqiIMA4AHQamBAANgBu2JEArLkD-Pf8QA