Describe the bug
The error shows when we use queryOptions with initialData inside useSuspenseQueries.
const query1 = queryOptions({
queryKey: ['key1'],
queryFn: () => 'Query Data',
initialData: 'initial data',
})
const queryResults = useSuspenseQueries({ queries: [query1] })
Is it intended? If not, I want to fix this issue.
Your minimal, reproducible example
Steps to reproduce
- Write the code on your text editor.
- You will see the error.
Expected behavior
No error should be shown.
How often does this bug happen?
Every time
Screenshots or Videos
Platform
macOS
VS Code
Tanstack Query adapter
None
TanStack Query version
5.66.3
TypeScript version
No response
Additional context
No response