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
2 Replies
wise-white•3y ago
You can use Promis.all(fetchPage(1),fetchPage2)
Also if you using axios you can use axios.all() to fetch both result
graceful-blueOP•3y ago
thanks