You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
@TkDodo This error already appears in the first version of 5. The types seem to have been generally incompatible since their inception. I can't use queryOptions because a large part of our endpoints get generated via Orval. I'll have to create an issue there as well.
FYI: The error does not appear when using the normal QueryOptions, only SuspenseQueryOptions. However because of the recent skipToken changes, we can't use this workaround anymore.
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
Expected behavior
UseSuspenseQueryOptions
can be used in useSuspenseQueriesHow 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
The text was updated successfully, but these errors were encountered: