Description
Describe the bug
I have already posted a question to the discord: https://discord.com/channels/719702312431386674/1003327027849474198/1247640278987309058
Unfortunately no one answered in the thread and in the meanwhile I'm pretty sure that this is an incorrect result type.
Steps to reproduce
return createQueries(() => {
const list = ["test1", "test2"];
return ({
queries: list .map((key) => ({
queryKey: ["key", key],
queryFn: () => true,
})),
combine: (results) => ({
data: results.every(result => result.data)
})
});
});
Expected behavior
As already said in the discord thread. I expect to just return a combined data and all other fields like isPending, isError and so on should be automatically handled by tanstack query. And if this is not possible, because I think in react it doesn't do that, it should be possible to freely define this result, because when we look at the react documentation (https://tanstack.com/query/latest/docs/framework/react/reference/useQueries#combine) clearly only uses data
and pending
How often does this bug happen?
Every time
Screenshots or Videos
Platform
OS: Windows
Browser: Chrome
Node: v21.7.3
Tanstack Query adapter
solid-query
TanStack Query version
5.40.0
TypeScript version
No response
Additional context
No response