TanStackT
TanStack3y ago
3 replies
sad-indigo

Multiple calls in createInfiniteQuery

this question is not strictly related to the solidjs version, it would be the same with useInfiniteQuery, is there a way in the queryFn to call two api endpoint instead of just one? I need to aggregate some data from two different call


  queryFn: ({ pageParam = 1 }) => fetchPage(pageParam),


  queryFn: ({ pageParam = 1 }) => {
fetchPage(pageParam)
fetchPage2(pageParam)
},
Was this page helpful?